(fix) router: passing client

This commit is contained in:
ishaan-jaff 2023-11-28 16:34:16 -08:00
parent 4d06c296e3
commit 282b9a37e5
2 changed files with 25 additions and 16 deletions

View file

@ -1765,6 +1765,7 @@ def embedding(
timeout=timeout,
model_response=EmbeddingResponse(),
optional_params=optional_params,
client=optional_params.pop("client", None)
)
elif model in litellm.open_ai_embedding_models or custom_llm_provider == "openai":
api_base = (
@ -1798,7 +1799,8 @@ def embedding(
logging_obj=logging,
timeout=timeout,
model_response=EmbeddingResponse(),
optional_params=optional_params
optional_params=optional_params,
client=optional_params.pop("client", None)
)
elif model in litellm.cohere_embedding_models:
cohere_key = (