mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
router fix init openai compatible providers
This commit is contained in:
parent
8bd7e2841f
commit
3708355f91
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
|
||||
if custom_llm_provider in litellm.openai_compatible_providers:
|
||||
_, 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_key = api_key
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue