This commit is contained in:
Gaoshunman 2025-08-27 17:37:54 +08:00
parent 98b10455d1
commit b171f47545
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,6 @@
const Api = { 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' import axios from 'axios'
const getAi=(msg: any):any => { const getAi=(msg: any):any => {
@ -139,7 +140,7 @@ export class MockSSEResponse {
// AI超级智能体聊天 // AI超级智能体聊天
chatWithManus = (message) => { chatWithManus = (message) => {
return this.connectSSE('/chat/generateStreamFlex', { message }); return this.connectSSE('/rag/query_rag', { message });
}; };
} }

View File

@ -10,4 +10,9 @@ export default defineConfig({
'@': path.resolve(__dirname, 'src'), // 将 @ 指向 src 目录 '@': path.resolve(__dirname, 'src'), // 将 @ 指向 src 目录
}, },
}, },
server: {
host: '0.0.0.0', // 监听所有网络接口
port: 5173, // 可自定义端口默认5173
open: false // 可选:是否自动打开浏览器
}
}) })