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"