mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(fix) router: passing client
This commit is contained in:
parent
4d06c296e3
commit
282b9a37e5
2 changed files with 25 additions and 16 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue