Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Update AzureOpenAI version to latest versions. #5561

Closed
wants to merge 4 commits into from

Conversation

moonbox3
Copy link
Contributor

Motivation and Context

An AzureOpenAI API version is deprecated soon. We need to update to the latest supported versions.
 

Description

This PR makes sure we're using the latest GA/preview AOAI Api Versions where needed. It also uses the .env file so that API versions are not hard-coded for some kernel examples. Closes #5523

Contribution Checklist

…ed to latest preview (2024-02-15-preview). Use .env AOAI api versions where possible.
@moonbox3 moonbox3 requested a review from a team as a code owner March 19, 2024 21:01
@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Mar 19, 2024
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Mar 19, 2024

Py3.8 Test Coverage

Python 3.8 Test Coverage Report •
FileStmtsMissCoverMissing
semantic_kernel/connectors/ai/open_ai/services
   azure_chat_completion.py491471%243, 249–251, 269–271, 286–293, 297
TOTAL5517101882% 

Python 3.8 Unit Test Overview

Tests Skipped Failures Errors Time
1200 11 💤 0 ❌ 0 🔥 23.903s ⏱️

@moonbox3
Copy link
Contributor Author

Will hold off on this PR until the OYD code is updated to handle the changes in 2024-02-15-preview.

@@ -48,7 +48,7 @@
deployment_name="gpt-35-turbo-16k",
api_key=api_key,
endpoint=endpoint,
api_version="2023-12-01-preview",
api_version=api_version,
use_extensions=True,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can get rid of this with the latest api versions...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by this comment? Get rid of what?

@moonbox3
Copy link
Contributor Author

Handled in another PR.

@moonbox3 moonbox3 closed this May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python: Remove soon to be deprecated Azure OpenAI API versions from Python
3 participants