提交 80359e14 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 a1c2e72d
...@@ -87,10 +87,10 @@ const { copy, copied } = useClipboard() ...@@ -87,10 +87,10 @@ const { copy, copied } = useClipboard()
</template> </template>
<div class="chat" ref="chatRef"> <div class="chat" ref="chatRef">
<div class="chat-message" v-for="(item, index) in messages" :key="index"> <div class="chat-message" v-for="(item, index) in messages" :key="index">
<a-popover position="right" class="chat-message-extra" style="z-index: 3001"> <a-popover position="right" class="chat-message-extra" popup-container=".zijing-chat">
<div class="chat-message-item" :class="item.role" v-html="item.content"></div> <div class="chat-message-item" :class="item.role" v-html="item.content"></div>
<template #content> <template #content>
<a-tooltip content="复制" style="z-index: 3002"> <a-tooltip content="复制">
<a-button @click="copy(item.content)"> <a-button @click="copy(item.content)">
<template #icon> <template #icon>
<icon-check v-if="copied" /> <icon-check v-if="copied" />
......
...@@ -29,25 +29,30 @@ export default defineConfig({ ...@@ -29,25 +29,30 @@ export default defineConfig({
open: true, open: true,
host: 'dev.ezijing.com', host: 'dev.ezijing.com',
proxy: { proxy: {
'/api/tiangong': { // '/api/tiangong': {
target: 'https://api.singularity-ai.com', // target: 'https://api.singularity-ai.com',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/tiangong/, ''),
// },
// '/api/deepseek': {
// target: 'https://api.deepseek.com',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/deepseek/, ''),
// },
// '/api/qwen': {
// target: 'https://dashscope.aliyuncs.com',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/qwen/, ''),
// },
// '/api/qianfan': {
// target: 'https://aip.baidubce.com',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/qianfan/, ''),
// },
'/api': {
target: 'https://api.ezijing.com',
secure: false,
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/tiangong/, ''),
},
'/api/deepseek': {
target: 'https://api.deepseek.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/deepseek/, ''),
},
'/api/qwen': {
target: 'https://dashscope.aliyuncs.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/qwen/, ''),
},
'/api/qianfan': {
target: 'https://aip.baidubce.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/qianfan/, ''),
}, },
}, },
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论