Upgrade default Azure API Version for testing and fetching models (#638)
This commit is contained in:
parent
4f259e2166
commit
9b45d84ab1
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue