forked from phoenix/litellm-mirror
test fixes for embedding
This commit is contained in:
parent
b8a35168ce
commit
acc15f5778
1 changed files with 4 additions and 0 deletions
|
@ -1223,6 +1223,10 @@ def get_llm_provider(model: str, custom_llm_provider: Optional[str] = None):
|
||||||
## petals
|
## petals
|
||||||
elif model in litellm.petals_models:
|
elif model in litellm.petals_models:
|
||||||
custom_llm_provider = "petals"
|
custom_llm_provider = "petals"
|
||||||
|
elif model in litellm.open_ai_embedding_models:
|
||||||
|
custom_llm_provider = "openai"
|
||||||
|
elif model in litellm.cohere_embedding_models:
|
||||||
|
custom_llm_provider == "cohere"
|
||||||
|
|
||||||
if custom_llm_provider is None or custom_llm_provider=="":
|
if custom_llm_provider is None or custom_llm_provider=="":
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue