debug: 添加阿里生图消息格式调试日志
This commit is contained in:
parent
cda7cd4d7d
commit
da207f654e
@ -292,6 +292,8 @@ export function createAlibabaImage({ apiKey, baseURL }: AlibabaImageConfig) {
|
|||||||
console.log("[Alibaba Image] doGenerate called");
|
console.log("[Alibaba Image] doGenerate called");
|
||||||
console.log("[Alibaba Image] Model:", modelId);
|
console.log("[Alibaba Image] Model:", modelId);
|
||||||
console.log("[Alibaba Image] Image params:", options.imageParams);
|
console.log("[Alibaba Image] Image params:", options.imageParams);
|
||||||
|
console.log("[Alibaba Image] Messages count:", options.messages.length);
|
||||||
|
console.log("[Alibaba Image] Messages:", JSON.stringify(options.messages, null, 2));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 提取最后一条用户消息
|
// 提取最后一条用户消息
|
||||||
@ -300,6 +302,8 @@ export function createAlibabaImage({ apiKey, baseURL }: AlibabaImageConfig) {
|
|||||||
throw new Error("No user message found");
|
throw new Error("No user message found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("[Alibaba Image] Last user message:", JSON.stringify(lastUserMessage, null, 2));
|
||||||
|
|
||||||
// 解析消息内容
|
// 解析消息内容
|
||||||
let prompt = "";
|
let prompt = "";
|
||||||
const imageUrls: string[] = [];
|
const imageUrls: string[] = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user