diff --git a/CHANGELOG.md b/CHANGELOG.md index 20f002c..968d78d 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 1503d82..8ca4710 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 0057be4..d2142c3 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 e623a75..b56ee58 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 1183666..19189bf 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 0fcb4a1..8f9a879 100644 --- a/src/components/common/Setting/index.vue +++ b/src/components/common/Setting/index.vue @@ -1,6 +1,7 @@