fix
This commit is contained in:
parent
98b10455d1
commit
b171f47545
|
@ -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 });
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 // 可选:是否自动打开浏览器
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue