mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
Merge pull request #20253 from BerriAI/litellm_SAP-model-routing-to-OpenAI
Fix open_ai_embedding_models to have custom_llm_provider None
This commit is contained in:
commit
fe7c7dadba
1 changed files with 2 additions and 2 deletions
|
|
@ -4709,11 +4709,11 @@ def embedding( # noqa: PLR0915
|
|||
litellm_params=litellm_params_dict,
|
||||
)
|
||||
elif (
|
||||
model in litellm.open_ai_embedding_models
|
||||
or custom_llm_provider == "openai"
|
||||
custom_llm_provider == "openai"
|
||||
or custom_llm_provider == "together_ai"
|
||||
or custom_llm_provider == "nvidia_nim"
|
||||
or custom_llm_provider == "litellm_proxy"
|
||||
or (model in litellm.open_ai_embedding_models and custom_llm_provider is None)
|
||||
):
|
||||
api_base = (
|
||||
api_base
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue