From b2f40c7702a5019ceaa9f4e99d301e14f952e6d9 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Sun, 30 Mar 2025 11:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E9=A1=B5=E9=9D=A2=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E6=96=B9=E4=BE=BF=E7=9A=84=E4=BF=AE=E6=94=B9=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ChatComponent.vue | 97 +++++++++++++++++++++++++--- web/src/views/SettingView.vue | 16 ++--- 2 files changed, 96 insertions(+), 17 deletions(-) diff --git a/web/src/components/ChatComponent.vue b/web/src/components/ChatComponent.vue index 8897f71d..5cf106ca 100644 --- a/web/src/components/ChatComponent.vue +++ b/web/src/components/ChatComponent.vue @@ -9,11 +9,29 @@ > - - - + + + + + {{ configStore.config?.model_provider }}/{{ configStore.config?.model_name }} + + +

模型配置

-

请在 src/.env 文件中配置对应的 APIKEY

+

请在 src/.env 文件中配置对应的 APIKEY,并重新启动服务

自定义模型

@@ -167,9 +167,9 @@
- @@ -550,7 +550,7 @@ const sendRestart = () => { .model-icon { width: 28px; height: 28px; - + // 灰度 filter: grayscale(100%); img { @@ -627,7 +627,7 @@ const sendRestart = () => { .icon-wrapper { display: inline-flex; transition: transform 0.2s ease; - + &.rotated { transform: rotate(180deg); } @@ -639,7 +639,7 @@ const sendRestart = () => { max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; // 先快后慢 - + &.expanded { max-height: 700px; /* 设置一个足够大的值 */ } @@ -710,7 +710,7 @@ const sendRestart = () => { flex: 1; margin-right: 8px; position: relative; - + &:hover::after { content: attr(title); position: absolute;