From 491bfcd84be3c48521871827a749a8b0e211a69a Mon Sep 17 00:00:00 2001 From: Vinlic Date: Thu, 21 Mar 2024 13:25:53 +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 --- package.json | 2 +- src/api/controllers/chat.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ddeffb8..a7a8ef0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "glm-free-api", - "version": "0.0.9", + "version": "0.0.10", "description": "GLM Free API Server", "type": "module", "main": "dist/index.js", diff --git a/src/api/controllers/chat.ts b/src/api/controllers/chat.ts index e278fc7..f24750d 100644 --- a/src/api/controllers/chat.ts +++ b/src/api/controllers/chat.ts @@ -539,7 +539,7 @@ async function receiveStream(stream: any): Promise { return innerStr + codeHead + chunk; } else if(type == 'code' && partStatus == 'finish' && codeGenerating) { - const codeFooter = '```\n'; + const codeFooter = '\n```\n'; codeGenerating = false; codeTemp = ''; textOffset += codeFooter.length;