Skip to content

Commit 49f2ae2

Browse files
kflililili-ms
andauthored
chore: update Azure OpenAI API version to 2024-08-01-preview (#25)
- Update Azure OpenAI API version in client creation - Update corresponding unit test - Verified working with both unit tests and real queries Co-authored-by: Li Li <[email protected]>
1 parent e957174 commit 49f2ae2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_llm_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_create_azure_client(self, mock_azure):
151151
client = create_llm_client("azure")
152152
mock_azure.assert_called_once_with(
153153
api_key='test-azure-key',
154-
api_version="2024-02-15-preview",
154+
api_version="2024-08-01-preview",
155155
azure_endpoint="https://msopenai.openai.azure.com"
156156
)
157157
self.assertEqual(client, self.mock_azure_client)

tools/llm_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def create_llm_client(provider="openai"):
5757
raise ValueError("AZURE_OPENAI_API_KEY not found in environment variables")
5858
return AzureOpenAI(
5959
api_key=api_key,
60-
api_version="2024-02-15-preview",
60+
api_version="2024-08-01-preview",
6161
azure_endpoint="https://msopenai.openai.azure.com"
6262
)
6363
elif provider == "deepseek":

0 commit comments

Comments
 (0)