From 64e43ffd2ca57e13ca52bee4ada2d5df8b1e0d0c Mon Sep 17 00:00:00 2001 From: Vinlic Date: Thu, 25 Apr 2024 09:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=98=E5=9B=BE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/chat.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/controllers/chat.ts b/src/api/controllers/chat.ts index cd7d9cb..2d0e802 100644 --- a/src/api/controllers/chat.ts +++ b/src/api/controllers/chat.ts @@ -379,8 +379,7 @@ async function generateImages( return (async () => { logger.info(prompt); const messages = [ - - { role: "user", content: prompt }, + { role: "user", content: prompt.indexOf('画') == -1 ? `请画:${prompt}` : prompt }, ]; // 请求流 const token = await acquireToken(refreshToken);