From ae8e8316e49eaace4879999ec7408d0e67d86aec Mon Sep 17 00:00:00 2001 From: Vinlic Date: Wed, 17 Apr 2024 12:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A3=80=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E8=BF=9E=E6=8E=A5=E5=B1=95=E7=A4=BA=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8Durl=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/chat.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/controllers/chat.ts b/src/api/controllers/chat.ts index 8050da0..585cace 100644 --- a/src/api/controllers/chat.ts +++ b/src/api/controllers/chat.ts @@ -610,7 +610,7 @@ async function receiveStream(model: string, convId: string, stream: any) { } // 处理联网搜索 else if (!silentSearch && result.event == 'search_plus' && result.msg && result.msg.type == 'get_res') - refContent += `${result.msg.title}(${result.msg.url})\n`; + refContent += `${result.msg.title} - ${result.msg.url}\n`; // else // logger.warn(result.event, result); } @@ -707,7 +707,7 @@ function createTransStream(model: string, convId: string, stream: any, endCallba choices: [ { index: 0, delta: { - content: `检索 ${result.msg.title}(${result.msg.url}) ...\n` + content: `检索 ${result.msg.title} - ${result.msg.url} ...\n` }, finish_reason: null } ],