From 1e2f893ef666bfc840c32753832d205ff18cee67 Mon Sep 17 00:00:00 2001 From: Redon <790348264@qq.com> Date: Thu, 23 Feb 2023 12:44:28 +0800 Subject: [PATCH] chore: version 2.7.1 (#99) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 调整流输出为实验性质 * feat: 取消回答按钮 * feat: 更新版本查看 * feat: 单消息复制和删除功能 * feat: 消除警告 * feat: 优化删除功能 * chore: version 2.7.1 --- CHANGELOG.md | 14 +++ package.json | 2 +- service/src/chatgpt.ts | 1 + service/src/index.ts | 1 + src/api/index.ts | 1 + src/components/common/Setting/index.vue | 14 ++- src/directives/highlight.ts | 2 + src/store/modules/chat/index.ts | 16 +++ src/views/chat/components/Message/Text.vue | 2 +- src/views/chat/components/Message/index.vue | 37 ++++-- src/views/chat/index.vue | 129 ++++++++++---------- 11 files changed, 139 insertions(+), 80 deletions(-) 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 @@