zhizhijie
13 小时以前 fbc1c1590e7e81a550beb50c7cf65c663c7c5b41
traffic-audit-web/src/components/AiChatDialog.vue
@@ -113,7 +113,7 @@
      api.post('/llm/chat', {
        messages: [{ role: 'user', content: '请用结构化 Markdown(小节标题、加粗、列表)分析该企业的解释是否合理,先给结论,再列数据依据,最后给出处置建议。' }],
        context: this.context
      })
      }, { timeout: 120000 })
        .then(res => { this.pushAssistant(res.data || 'AI 未返回内容,请重试') })
        .catch(() => { this.pushAssistant('AI 分析失败,请稍后重试或人工判断') })
        .finally(() => { this.$nextTick(() => this.scrollToBottom()) })
@@ -147,7 +147,7 @@
      this.userScrolledUp = false
      this.chatLoading = true
      this.$nextTick(() => this.scrollToBottom())
      api.post('/llm/chat', { messages: this.chatMessages, context: this.context })
      api.post('/llm/chat', { messages: this.chatMessages, context: this.context }, { timeout: 120000 })
        .then(res => { this.pushAssistant(res.data || 'AI 未返回内容,请重试') })
        .catch(() => { this.pushAssistant('AI 分析失败,请稍后重试或人工判断') })
        .finally(() => { this.$nextTick(() => this.scrollToBottom()) })