From c17cc16c0ea5f446ff7ed462f2b000bda361f3d1 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Thu, 9 Mar 2023 22:58:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BC=82=E5=B8=B8=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E5=92=8C=E8=B0=83=E6=95=B4=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 +++- service/src/chatgpt/index.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c22e7fd..9d9ba55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,10 @@ `2023-03-09` +衔接 `2.10.1` 版本[详情](https://github.com/Chanzhaoyu/chatgpt-web/releases/tag/v2.10.1) + ## BugFix -- 修复 `2.10.1` 中添加 `OPENAI_API_MODEL` 变量的判断错误,会导致默认模型指定失效 +- 修复 `2.10.1` 中添加 `OPENAI_API_MODEL` 变量的判断错误,会导致默认模型指定失效,抱歉 ## v2.10.1 diff --git a/service/src/chatgpt/index.ts b/service/src/chatgpt/index.ts index f486f88..a9eecd2 100644 --- a/service/src/chatgpt/index.ts +++ b/service/src/chatgpt/index.ts @@ -111,6 +111,7 @@ async function chatReplyProcess( } catch (error: any) { const code = error.statusCode + global.console.log(error) if (Reflect.has(ErrorCodeMessage, code)) return sendResponse({ type: 'Fail', message: ErrorCodeMessage[code] }) return sendResponse({ type: 'Fail', message: error.message ?? 'Please check the back-end console' })