fix(router.py): bump azure default api version

Allows 'tool_choice' to be passed to azure
This commit is contained in:
Krrish Dholakia 2024-07-03 12:00:00 -07:00
parent 3fdfb8470d
commit b17fe3e0d2
3 changed files with 4 additions and 2 deletions

View file

@ -3437,7 +3437,7 @@ class Router:
if azure_ad_token.startswith("oidc/"):
azure_ad_token = get_azure_ad_token_from_oidc(azure_ad_token)
if api_version is None:
api_version = "2023-07-01-preview"
api_version = litellm.AZURE_DEFAULT_API_VERSION
if "gateway.ai.cloudflare.com" in api_base:
if not api_base.endswith("/"):