From 817f22c9d6b87b181060670831e61a70c3f4411c Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Fri, 4 Apr 2025 18:25:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20deepseek-reasoning=20error=20cause=20same?= =?UTF-8?q?=20user=20message=20deepseek-reasoner=20=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20#126?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ChatComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/ChatComponent.vue b/web/src/components/ChatComponent.vue index 7ed84bc9..25b6143a 100644 --- a/web/src/components/ChatComponent.vue +++ b/web/src/components/ChatComponent.vue @@ -434,7 +434,7 @@ const fetchChatResponse = (user_input, cur_res_id) => { const params = { query: user_input, - history: getHistory(), + history: getHistory().slice(0, -1), // 去掉最后一条刚添加的用户消息, meta: meta, cur_res_id: cur_res_id, }