Revert "LiteLLM Common Base LLM Config (pt.4): Move Ollama to Base LLM Config…" (#7160)

This reverts commit 40a22eb4c6.
This commit is contained in:
Krish Dholakia 2024-12-10 21:44:54 -08:00 committed by GitHub
parent 1d8956a3d4
commit 488913c69f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 234 additions and 322 deletions

View file

@ -3308,12 +3308,6 @@ def get_optional_params( # noqa: PLR0915
optional_params = litellm.OllamaConfig().map_openai_params(
non_default_params=non_default_params,
optional_params=optional_params,
model=model,
drop_params=(
drop_params
if drop_params is not None and isinstance(drop_params, bool)
else False
),
)
elif custom_llm_provider == "ollama_chat":
supported_params = get_supported_openai_params(
@ -6319,8 +6313,6 @@ class ProviderConfigManager:
return litellm.LMStudioChatConfig()
elif litellm.LlmProviders.GALADRIEL == provider:
return litellm.GaladrielChatConfig()
elif litellm.LlmProviders.OLLAMA == provider:
return litellm.OllamaConfig()
return litellm.OpenAIGPTConfig()