test fixes for embedding

This commit is contained in:
ishaan-jaff 2023-09-29 15:31:53 -07:00
parent b8a35168ce
commit acc15f5778

View file

@ -1223,6 +1223,10 @@ def get_llm_provider(model: str, custom_llm_provider: Optional[str] = None):
## petals
elif model in litellm.petals_models:
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=="":
print()