From 1144841ed9c5aa0fbb53567e07238bd1ae97abf4 Mon Sep 17 00:00:00 2001 From: Vinlic Date: Thu, 21 Mar 2024 13:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmarkdown=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= 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 f24750d..0f4e458 100644 --- a/src/api/controllers/chat.ts +++ b/src/api/controllers/chat.ts @@ -657,7 +657,7 @@ function createTransStream(stream: any, endCallback?: Function) { return innerStr + codeHead + chunk; } else if(type == 'code' && partStatus == 'finish' && codeGenerating) { - const codeFooter = '```\n'; + const codeFooter = '\n```\n'; codeGenerating = false; codeTemp = ''; textOffset += codeFooter.length;