From 59c306f88fcb1bc4573b034ac71883486346f951 Mon Sep 17 00:00:00 2001 From: Nelson <1475262689@qq.com> Date: Mon, 3 Aug 2026 18:04:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B2=BE=E7=AE=80AI=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E9=87=8D=E8=AF=95=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai_knowledge_base_v2/apps/user-client/src/App.vue | 4 ++-- .../apps/user-client/src/components/ChatMessage.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ai_knowledge_base_v2/apps/user-client/src/App.vue b/ai_knowledge_base_v2/apps/user-client/src/App.vue index d8fb630..e0357ef 100644 --- a/ai_knowledge_base_v2/apps/user-client/src/App.vue +++ b/ai_knowledge_base_v2/apps/user-client/src/App.vue @@ -219,7 +219,7 @@ async function runGeneration(sessionId: number, message: string, assistantIndex: } else { currentAssistant().errorMessage = chatErrorMessage(error); currentAssistant().retryQuestion = message; - showToast("本次回答未完成,可以点击重新生成"); + showToast("本次回答未完成,可以点击重试"); } } finally { sending.value = false; @@ -230,7 +230,7 @@ async function runGeneration(sessionId: number, message: string, assistantIndex: function chatErrorMessage(error: unknown) { const message = error instanceof Error ? error.message : ""; if (/429|too many|请求过多|排队/i.test(message)) return "当前请求较多,AI 服务暂时繁忙。"; - if (/timeout|超时/i.test(message)) return "等待 AI 回复超时,请稍后重新生成。"; + if (/timeout|超时/i.test(message)) return "等待 AI 回复超时,请稍后重试。"; if (/network|网络|连接/i.test(message)) return "网络连接不稳定,本次回答没有完成。"; return "AI 回答生成失败,本次不会扣除成功回答额度。"; } diff --git a/ai_knowledge_base_v2/apps/user-client/src/components/ChatMessage.vue b/ai_knowledge_base_v2/apps/user-client/src/components/ChatMessage.vue index 1de0f40..d80096f 100644 --- a/ai_knowledge_base_v2/apps/user-client/src/components/ChatMessage.vue +++ b/ai_knowledge_base_v2/apps/user-client/src/components/ChatMessage.vue @@ -105,7 +105,7 @@ const displayTime = computed(() => { {{ errorMessage }}