Skip to content

Commit c17cc16

Browse files
committed
chore: 异常打印和调整日志
1 parent d7d0376 commit c17cc16

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
`2023-03-09`
44

5+
衔接 `2.10.1` 版本[详情](https://github.com/Chanzhaoyu/chatgpt-web/releases/tag/v2.10.1)
6+
57
## BugFix
6-
- 修复 `2.10.1` 中添加 `OPENAI_API_MODEL` 变量的判断错误,会导致默认模型指定失效
8+
- 修复 `2.10.1` 中添加 `OPENAI_API_MODEL` 变量的判断错误,会导致默认模型指定失效,抱歉
79

810
## v2.10.1
911

service/src/chatgpt/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ async function chatReplyProcess(
111111
}
112112
catch (error: any) {
113113
const code = error.statusCode
114+
global.console.log(error)
114115
if (Reflect.has(ErrorCodeMessage, code))
115116
return sendResponse({ type: 'Fail', message: ErrorCodeMessage[code] })
116117
return sendResponse({ type: 'Fail', message: error.message ?? 'Please check the back-end console' })

0 commit comments

Comments
 (0)