From b171f47545bb7f50ad0f53024896190b1a81ba20 Mon Sep 17 00:00:00 2001 From: Gaoshunman Date: Wed, 27 Aug 2025 17:37:54 +0800 Subject: [PATCH] fix --- src/components/chat/ChatAi.ts | 5 +++-- vite.config.ts | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/chat/ChatAi.ts b/src/components/chat/ChatAi.ts index 32383c4..8268b2c 100644 --- a/src/components/chat/ChatAi.ts +++ b/src/components/chat/ChatAi.ts @@ -1,5 +1,6 @@ const Api = { - CHAT_AI_URL: 'http://localhost:8180/chat/generateStreamFlex' + // CHAT_AI_URL: 'http://localhost:8180/chat/generateStreamFlex' + CHAT_AI_URL: 'http://localhost:8180/rag/query_rag' }; import axios from 'axios' const getAi=(msg: any):any => { @@ -139,7 +140,7 @@ export class MockSSEResponse { // AI超级智能体聊天 chatWithManus = (message) => { - return this.connectSSE('/chat/generateStreamFlex', { message }); + return this.connectSSE('/rag/query_rag', { message }); }; } diff --git a/vite.config.ts b/vite.config.ts index e1f0034..d77564f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,4 +10,9 @@ export default defineConfig({ '@': path.resolve(__dirname, 'src'), // 将 @ 指向 src 目录 }, }, + server: { + host: '0.0.0.0', // 监听所有网络接口 + port: 5173, // 可自定义端口(默认5173) + open: false // 可选:是否自动打开浏览器 + } })