Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: Model provider bugs (#15770)

chanx2bd8900638b6
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<V = unknown>({
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<string>([
- LLMFactory.HuggingFace,
LLMFactory.Ollama,
- LLMFactory.GoogleCloud,
LLMFactory.OpenRouter,
LLMFactory.VLLM,
LLMFactory.OpenAiAPICompatible,
@@ -25,12 +23,15 @@ export const LIST_MODEL_PROVIDERS = new Set<string>([
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 = ({
<ToggleList
className="w-full"
buttonClassName="self-end"
- // searchable
+ searchable={listModelsOptions.length > 10}
btnText={hasModelNameField ? t('listModels') : 'Select an option'}
options={
hasModelNameField
@@ -142,7 +142,6 @@ const ProviderModal = ({
searchLoading={listLoading}
onOpenChange={handleListOpenChange}
maxHeight={400}
- closeOnOutsideClick
/>
)}