Upgrade default Azure API Version for testing and fetching models (#638)

This commit is contained in:
Kunal Karmakar 2026-03-11 06:04:36 +05:30 committed by GitHub
parent 4f259e2166
commit 9b45d84ab1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -554,7 +554,7 @@ async def discover_with_config(provider: str, config: dict) -> List[dict]:
if provider == "azure":
endpoint = config.get("endpoint")
api_version = config.get("api_version", "2024-06-01")
api_version = config.get("api_version", "2024-10-21")
if not endpoint or not api_key:
return []
try:

View file

@ -50,7 +50,7 @@ async def _test_azure_connection(
"""
test_endpoint = endpoint or os.environ.get("AZURE_OPENAI_ENDPOINT")
test_api_key = api_key or os.environ.get("AZURE_OPENAI_API_KEY")
test_api_version = api_version or os.environ.get("AZURE_OPENAI_API_VERSION", "2024-06-01")
test_api_version = api_version or os.environ.get("AZURE_OPENAI_API_VERSION", "2024-10-21")
if not test_endpoint:
return False, "No Azure endpoint configured"