From da207f654ebdeb4b9f00eea8bc046b0e00c0f79b Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 12 Jan 2026 13:56:38 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E6=B7=BB=E5=8A=A0=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E7=94=9F=E5=9B=BE=E6=B6=88=E6=81=AF=E6=A0=BC=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ai/providers/alibaba-image.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ai/providers/alibaba-image.ts b/lib/ai/providers/alibaba-image.ts index 57e923ab0..4b2c6e9ca 100644 --- a/lib/ai/providers/alibaba-image.ts +++ b/lib/ai/providers/alibaba-image.ts @@ -292,6 +292,8 @@ export function createAlibabaImage({ apiKey, baseURL }: AlibabaImageConfig) { console.log("[Alibaba Image] doGenerate called"); console.log("[Alibaba Image] Model:", modelId); 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 { // 提取最后一条用户消息 @@ -300,6 +302,8 @@ export function createAlibabaImage({ apiKey, baseURL }: AlibabaImageConfig) { throw new Error("No user message found"); } + console.log("[Alibaba Image] Last user message:", JSON.stringify(lastUserMessage, null, 2)); + // 解析消息内容 let prompt = ""; const imageUrls: string[] = [];