Skip to content

Commit

Permalink
Python: Upgrade AOAI api version to latest GA: 2024-10-21 (#10118)
Browse files Browse the repository at this point in the history
### Motivation and Context

The current DEFAULT_AZURE_API_VERSION is stale at 2024-06-01. The
[latest GA API
VERSION](https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation#latest-ga-api-release)
is 2024-10-21.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

This PR upgrades the DEFAULT_AZURE_API_VERSION to be the latest GA
2024-10-21. This default version is used if an api_version is not
supplied to the AzureChatCompletion constructor.
- Closes #10117

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
  • Loading branch information
moonbox3 authored Jan 9, 2025
1 parent 4882550 commit f5f38c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion python/semantic_kernel/connectors/ai/open_ai/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from typing import Final

DEFAULT_AZURE_API_VERSION: Final[str] = "2024-06-01"
DEFAULT_AZURE_API_VERSION: Final[str] = "2024-10-21"
21 changes: 4 additions & 17 deletions python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5f38c7

Please sign in to comment.