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
@ -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…
Reference in New Issue
Block a user