From 2bd8900638b606cc16f6c35f21bad4acb0366c22 Mon Sep 17 00:00:00 2001 From: chanx <1243304602@qq.com> Date: Mon, 8 Jun 2026 17:04:05 +0800 Subject: [PATCH] Fix: Model provider bugs (#15770) ### What problem does this PR solve? Fix: Model provider bugs ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/components/ui/toggle-list.tsx | 2 +- .../modal/provider-modal/constants.ts | 17 +++++++++-------- .../modal/provider-modal/index.tsx | 3 +-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/web/src/components/ui/toggle-list.tsx b/web/src/components/ui/toggle-list.tsx index e663847c86..aebb3da882 100644 --- a/web/src/components/ui/toggle-list.tsx +++ b/web/src/components/ui/toggle-list.tsx @@ -104,7 +104,7 @@ export function ToggleList({ className, btnText, options, - closeOnOutsideClick = true, + closeOnOutsideClick = false, maxHeight = 500, listClassName, itemClassName, diff --git a/web/src/pages/user-setting/setting-model/modal/provider-modal/constants.ts b/web/src/pages/user-setting/setting-model/modal/provider-modal/constants.ts index 751788d673..e340911419 100644 --- a/web/src/pages/user-setting/setting-model/modal/provider-modal/constants.ts +++ b/web/src/pages/user-setting/setting-model/modal/provider-modal/constants.ts @@ -14,9 +14,7 @@ import { LLMFactory } from '@/constants/llm'; * 4 model_* fields directly. */ export const LIST_MODEL_PROVIDERS = new Set([ - LLMFactory.HuggingFace, LLMFactory.Ollama, - LLMFactory.GoogleCloud, LLMFactory.OpenRouter, LLMFactory.VLLM, LLMFactory.OpenAiAPICompatible, @@ -25,12 +23,15 @@ export const LIST_MODEL_PROVIDERS = new Set([ LLMFactory.Xinference, LLMFactory.LocalAI, LLMFactory.BaiduYiYan, - LLMFactory.TencentCloud, - LLMFactory.XunFeiSpark, - LLMFactory.GPUStack, - LLMFactory.FishAudio, - LLMFactory.MinerU, - LLMFactory.PaddleOCR, + + // LLMFactory.HuggingFace, + // LLMFactory.GoogleCloud, + // LLMFactory.TencentCloud, + // LLMFactory.XunFeiSpark, + // LLMFactory.GPUStack, + // LLMFactory.FishAudio, + // LLMFactory.MinerU, + // LLMFactory.PaddleOCR, ]); /** diff --git a/web/src/pages/user-setting/setting-model/modal/provider-modal/index.tsx b/web/src/pages/user-setting/setting-model/modal/provider-modal/index.tsx index 682b3d9cc3..33f38fe79e 100644 --- a/web/src/pages/user-setting/setting-model/modal/provider-modal/index.tsx +++ b/web/src/pages/user-setting/setting-model/modal/provider-modal/index.tsx @@ -128,7 +128,7 @@ const ProviderModal = ({ 10} btnText={hasModelNameField ? t('listModels') : 'Select an option'} options={ hasModelNameField @@ -142,7 +142,6 @@ const ProviderModal = ({ searchLoading={listLoading} onOpenChange={handleListOpenChange} maxHeight={400} - closeOnOutsideClick /> )}