From 9b45d84ab1161644c48d5c730d32fc5613a12fb1 Mon Sep 17 00:00:00 2001 From: Kunal Karmakar <5303824+kunalk16@users.noreply.github.com> Date: Wed, 11 Mar 2026 06:04:36 +0530 Subject: [PATCH] Upgrade default Azure API Version for testing and fetching models (#638) --- api/credentials_service.py | 2 +- open_notebook/ai/connection_tester.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/credentials_service.py b/api/credentials_service.py index 2545705..943464c 100644 --- a/api/credentials_service.py +++ b/api/credentials_service.py @@ -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: diff --git a/open_notebook/ai/connection_tester.py b/open_notebook/ai/connection_tester.py index 4eb92b0..1e6c7c9 100644 --- a/open_notebook/ai/connection_tester.py +++ b/open_notebook/ai/connection_tester.py @@ -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"