From 9868897d07eb2118915a3bf4c09a72c6c1d28372 Mon Sep 17 00:00:00 2001 From: Vinlic Date: Sun, 17 Mar 2024 17:23:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A2=84=E8=AE=BEprompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/controllers/chat.ts b/src/api/controllers/chat.ts index f55ce8c..2b3f73f 100644 --- a/src/api/controllers/chat.ts +++ b/src/api/controllers/chat.ts @@ -304,7 +304,7 @@ function extractRefFileUrls(messages: any[]) { * @param messages 参考gpt系列消息格式,多轮对话请完整提供上下文 */ function messagesPrepare(messages: any[], refs: any[]) { - const headPrompt = '使用”你“这个角色回复”我“这个角色,以第一人称对话\n'; + const headPrompt = '使用”你“这个角色回复”我“这个角色,以第一人称对话,不要携带”我:“以及"你:"\n'; const content = messages.reduce((content, message) => { if (_.isArray(message.content)) { return message.content.reduce((_content, v) => {