mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-01 16:25:44 +08:00
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)
This commit is contained in:
@@ -104,7 +104,7 @@ export function ToggleList<V = unknown>({
|
||||
className,
|
||||
btnText,
|
||||
options,
|
||||
closeOnOutsideClick = true,
|
||||
closeOnOutsideClick = false,
|
||||
maxHeight = 500,
|
||||
listClassName,
|
||||
itemClassName,
|
||||
|
||||
@@ -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,
|
||||
]);
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user