mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
router fix init openai compatible providers
This commit is contained in:
parent
7f9d56d277
commit
368e0109a4
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ def set_client(litellm_router_instance: LitellmRouter, model: dict):
|
||||||
default_api_key = None
|
default_api_key = None
|
||||||
if custom_llm_provider in litellm.openai_compatible_providers:
|
if custom_llm_provider in litellm.openai_compatible_providers:
|
||||||
_, custom_llm_provider, api_key, api_base = litellm.get_llm_provider(
|
_, custom_llm_provider, api_key, api_base = litellm.get_llm_provider(
|
||||||
model=model_name
|
model=model_name,
|
||||||
|
custom_llm_provider=custom_llm_provider,
|
||||||
|
api_key=litellm_params.get("api_key"),
|
||||||
|
api_base=litellm_params.get("api_base"),
|
||||||
)
|
)
|
||||||
default_api_base = api_base
|
default_api_base = api_base
|
||||||
default_api_key = api_key
|
default_api_key = api_key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue