forked from phoenix/litellm-mirror
fix(utils.py): fix get_api_base
This commit is contained in:
parent
7656bd1c3f
commit
4d0d6127d8
1 changed files with 3 additions and 1 deletions
|
@ -5407,7 +5407,9 @@ def get_api_base(model: str, optional_params: dict) -> Optional[str]:
|
|||
get_api_base(model="gemini/gemini-pro")
|
||||
```
|
||||
"""
|
||||
_optional_params = LiteLLM_Params(**optional_params) # convert to pydantic object
|
||||
_optional_params = LiteLLM_Params(
|
||||
model=model, **optional_params
|
||||
) # convert to pydantic object
|
||||
# get llm provider
|
||||
try:
|
||||
model, custom_llm_provider, dynamic_api_key, api_base = get_llm_provider(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue