From 1e09d807e639b22b141c83d6dad201e457cf5649 Mon Sep 17 00:00:00 2001 From: Yanyutin753 <132346501+Yanyutin753@users.noreply.github.com> Date: Tue, 2 Apr 2024 21:15:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E4=B8=8A=E4=BC=A0=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/chat.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/controllers/chat.ts b/src/api/controllers/chat.ts index c06c461..bc53064 100644 --- a/src/api/controllers/chat.ts +++ b/src/api/controllers/chat.ts @@ -411,6 +411,8 @@ function messagesPrepare(messages: any[]) { } return content += `${message.role || 'user'}:${wrapUrlsToTags(message.content)}\n`; }, ''); + + logger.info("本次上传消息:" + { role: 'user', content }); return [ { role: 'user', content } ]