Skip to content

Commit 991f98f

Browse files
committed
fix: add ollama and lmstudio to MODELS_BY_PROVIDER
- Remove ollama and lmstudio from the excluded providers in MODELS_BY_PROVIDER type definition - Add ollama and lmstudio entries with empty model arrays (dynamic providers) - This allows them to appear in provider lists similar to litellm and other dynamic providers
1 parent 97f9686 commit 991f98f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/types/src/provider-settings.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ export const getApiProtocol = (provider: ProviderName | undefined, modelId?: str
610610
*/
611611

612612
export const MODELS_BY_PROVIDER: Record<
613-
Exclude<ProviderName, "fake-ai" | "human-relay" | "gemini-cli" | "lmstudio" | "openai" | "ollama">,
613+
Exclude<ProviderName, "fake-ai" | "human-relay" | "gemini-cli" | "openai">,
614614
{ id: ProviderName; label: string; models: string[] }
615615
> = {
616616
anthropic: {
@@ -700,6 +700,8 @@ export const MODELS_BY_PROVIDER: Record<
700700
glama: { id: "glama", label: "Glama", models: [] },
701701
huggingface: { id: "huggingface", label: "Hugging Face", models: [] },
702702
litellm: { id: "litellm", label: "LiteLLM", models: [] },
703+
lmstudio: { id: "lmstudio", label: "LM Studio", models: [] },
704+
ollama: { id: "ollama", label: "Ollama", models: [] },
703705
openrouter: { id: "openrouter", label: "OpenRouter", models: [] },
704706
requesty: { id: "requesty", label: "Requesty", models: [] },
705707
unbound: { id: "unbound", label: "Unbound", models: [] },

0 commit comments

Comments
 (0)