From a4c33265a2f6fca55689496566d46a2b469c6eca Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Tue, 23 Sep 2025 00:59:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(guard):=20=E4=BF=AE=E5=A4=8D=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=AE=A1=E6=9F=A5=E6=A8=A1=E5=9E=8B=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/changelog/update.md | 1 - web/src/views/SettingView.vue | 17 +++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/changelog/update.md b/docs/changelog/update.md index 1a131f85..ac808c9d 100644 --- a/docs/changelog/update.md +++ b/docs/changelog/update.md @@ -14,7 +14,6 @@ - [ ] 添加统计信息 - [x] 添加内容审查功能 - [x] 补充 embedding 模型和 reranker 模型的配置说明 -- [ ] 知识库文件应该上传到 minio 中,然后就可以支持 从 minio 中下载文件 📝 **Base** diff --git a/web/src/views/SettingView.vue b/web/src/views/SettingView.vue index 31deea0b..da9fa67c 100644 --- a/web/src/views/SettingView.vue +++ b/web/src/views/SettingView.vue @@ -101,8 +101,8 @@ {{ items?.content_guard_llm_model.des }} @@ -250,6 +250,19 @@ const handleChatModelSelect = ({ provider, name }) => { }) } +const contentGuardModelProvider = computed(() => { + const contentGuardModel = configStore.config?.content_guard_llm_model + if (!contentGuardModel) return '' + return contentGuardModel.split('/')[0] +}) + +const contentGuardModelName = computed(() => { + const contentGuardModel = configStore.config?.content_guard_llm_model + if (!contentGuardModel) return '' + const parts = contentGuardModel.split('/') + return parts.slice(1).join('/') +}) + const handleContentGuardModelSelect = ({ provider, name }) => { configStore.setConfigValue('content_guard_llm_model', `${provider}/${name}`) }