From d5ca77e2d87753896773554b25be5c5ec952d6e5 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Wed, 13 May 2026 08:40:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(ai-chat):=20=E8=B7=B3=E8=BF=87=E5=81=A5?= =?UTF-8?q?=E5=BA=B7=E6=A3=80=E6=9F=A5=E9=81=BF=E5=85=8D=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E8=AF=AF=E5=88=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages_tool/ai-chat/ai-chat-message.vue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue index 60ce73a..babb4a2 100644 --- a/pages_tool/ai-chat/ai-chat-message.vue +++ b/pages_tool/ai-chat/ai-chat-message.vue @@ -906,15 +906,8 @@ async loadChatHistoryIfExist() { this.messages.push(loadingMessage) try { - // 检查AI服务状态 - const status = await aiService.getServiceStatus() - this.isAIServiceAvailable = status.available - - if (!this.isAIServiceAvailable) { - throw new Error('AI服务暂不可用') - } - - // 使用AI服务获取回复 + // 直接发送消息(跳过健康检查,避免健康检查接口格式不匹配导致误判) + // 如果服务不可用,实际发送时会抛出异常,由 catch 块处理 const enhancedMessage = this.enhanceEmojiMessage(userMessage.content) if (this.enableStreaming) { await this.sendStreamMessage(enhancedMessage)