diff --git a/CHANGELOG.md b/CHANGELOG.md index 20f002ce58..968d78dd94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## v2.7.1 + +`2023-02-23` + +因为消息流在 `accessToken` 中存在解析失败和消息不完整等一系列的问题,调整回正常消息形式 + +### Feature +- 现在可以中断请求过长没有答复的消息 +- 现在可以删除单条消息 +- 设置中显示当前版本信息 + +### BugFix +- 回退 `2.7.0` 的消息不稳定的问题 + ## v2.7.0 `2023-02-23` diff --git a/package.json b/package.json index 1503d82a72..8ca471031b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chatgpt-web", - "version": "2.7.0", + "version": "2.7.1", "private": false, "description": "ChatGPT Web", "author": "ChenZhaoYu ", diff --git a/service/src/chatgpt.ts b/service/src/chatgpt.ts index 0057be4bd3..d2142c3d5f 100644 --- a/service/src/chatgpt.ts +++ b/service/src/chatgpt.ts @@ -65,6 +65,7 @@ async function chatReply( } } +/** 实验性质的函数,用于处理聊天过程中的中间结果 */ async function chatReplyProcess( message: string, lastContext?: { conversationId?: string; parentMessageId?: string }, diff --git a/service/src/index.ts b/service/src/index.ts index e623a75851..b56ee5814f 100644 --- a/service/src/index.ts +++ b/service/src/index.ts @@ -26,6 +26,7 @@ router.post('/chat', async (req, res) => { } }) +/** 实验性质的函数,用于处理聊天过程中的中间结果 */ router.post('/chat-process', async (req, res) => { res.setHeader('Content-type', 'application/octet-stream') diff --git a/src/api/index.ts b/src/api/index.ts index 1183666d07..19189bf15d 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -13,6 +13,7 @@ export function fetchChatAPI( }) } +/** 实验性质的函数,用于处理聊天过程中的中间结果 */ export function fetchChatAPIProcess( params: { prompt: string diff --git a/src/components/common/Setting/index.vue b/src/components/common/Setting/index.vue index 0fcb4a187f..8f9a879514 100644 --- a/src/components/common/Setting/index.vue +++ b/src/components/common/Setting/index.vue @@ -1,6 +1,7 @@