mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Merge pull request #3706 from Manouchehri/fix-azure-openai-3695
Fix(router.py): Kill a bug that forced Azure OpenAI to have an API ke…
This commit is contained in:
commit
fdc9690537
1 changed files with 1 additions and 1 deletions
|
|
@ -2375,7 +2375,7 @@ class Router:
|
|||
organization = litellm.get_secret(organization_env_name)
|
||||
litellm_params["organization"] = organization
|
||||
|
||||
if "azure" in model_name and isinstance(api_key, str):
|
||||
if "azure" in model_name:
|
||||
if api_base is None or not isinstance(api_base, str):
|
||||
raise ValueError(
|
||||
f"api_base is required for Azure OpenAI. Set it on your config. Model - {model}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue