实现deepseek 对话

This commit is contained in:
XIE7654
2025-07-17 14:42:40 +08:00
parent 15116d761b
commit 9b30115444
6 changed files with 149 additions and 29 deletions

View File

@@ -22,15 +22,14 @@ export default defineConfig(async ({ mode }) => {
host: '0.0.0.0', // 保证 docker 内外都能访问
port: 5678,
proxy: {
'/chat': {
target: 'http://localhost:8010',
changeOrigin: true,
},
'/api': {
target: backendUrl,
changeOrigin: true,
},
'/ws': {
target: backendUrl,
changeOrigin: true,
ws: true, // 启用WebSocket代理
},
},
},
plugins: [