Update Azure OpenAI API to 2024-02-15-preview (#1692)

On April 2, 2024 the following API preview releases will be retired and will stop accepting API requests:

2023-03-15-preview
2023-06-01-preview
2023-07-01-preview
2023-08-01-preview

To avoid service disruptions, update to use the latest version 2024-02-15-preview.

https://review.learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation
This commit is contained in:
Mats Finsås
2024-02-15 19:57:17 +01:00
committed by GitHub
parent 5ca69da8e5
commit 7ceee5dadc
34 changed files with 61 additions and 61 deletions

View File

@@ -54,7 +54,7 @@ JSON_SAMPLE = """
"api_key": "111113fc7e8a46419bfac511bb301111",
"base_url": "https://1111.openai.azure.com",
"api_type": "azure",
"api_version": "2023-07-01-preview"
"api_version": "2024-02-15-preview"
},
{
"model": "gpt",

View File

@@ -173,7 +173,7 @@ def test_log_oai_client(db_connection):
openai_config = {
"api_key": "some_key",
"api_version": "2023-12-01-preview",
"api_version": "2024-02-15-preview",
"azure_deployment": "gpt-4",
"azure_endpoint": "https://foobar.openai.azure.com/",
}