From b9d7f495ad0dd9455f3fabc169608065d3199799 Mon Sep 17 00:00:00 2001 From: dzq Date: Fri, 19 Dec 2025 18:02:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(llm-chat):=20=E5=AE=9E=E7=8E=B0=E6=B5=81?= =?UTF-8?q?=E5=BC=8FAPI=E5=93=8D=E5=BA=94=E5=92=8C=E6=89=93=E5=AD=97?= =?UTF-8?q?=E6=9C=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加流式API调用功能,替换原有的模拟响应。实现以下功能: 1. 使用SSE连接处理AI响应 2. 添加打字机效果逐字显示AI回复 3. 增加错误处理和连接管理 4. 移除未使用的Vant组件声明 --- src/pages/llm-chat/index.vue | 132 +++++++++++++++++++++++++++++++---- src/types/components.d.ts | 2 - 2 files changed, 117 insertions(+), 17 deletions(-) diff --git a/src/pages/llm-chat/index.vue b/src/pages/llm-chat/index.vue index 67760ed..0415763 100644 --- a/src/pages/llm-chat/index.vue +++ b/src/pages/llm-chat/index.vue @@ -1,7 +1,7 @@