完成AI续写、优化、问答功能

This commit is contained in:
宇阳
2024-09-26 21:15:00 +08:00
parent e612fbb0ff
commit 3b383845e5
5 changed files with 91 additions and 18 deletions

View File

@@ -24,15 +24,20 @@ export default defineConfig({
server: {
proxy: {
'/api': {
target: 'https://openapi.baidu.com/', // 你的后端服务器地址
target: 'https://openapi.baidu.com/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
'/qiniu': {
target: 'https://rsf.qiniuapi.com/', // 你的后端服务器地址
target: 'https://rsf.qiniuapi.com/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/qiniu/, ''),
},
'/ai': {
target: 'https://spark-api-open.xf-yun.com/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/ai/, ''),
},
},
},
})