Skip to content

Update OpenAI API version in agent configuration#227

Closed
yashy797 wants to merge 1 commit intomicrosoft:mainfrom
yashy797:main
Closed

Update OpenAI API version in agent configuration#227
yashy797 wants to merge 1 commit intomicrosoft:mainfrom
yashy797:main

Conversation

@yashy797
Copy link

2024-12-01-preview was a preview release that added support for features like the Responses API, structured outputs, and newer model capabilities needed by the OpenAI Agents SDK.
The OpenAI Agents SDK (agents package) relies on API features that may not be available in older GA versions.

@yashy797 yashy797 requested a review from a team as a code owner February 20, 2026 05:19
Copilot AI review requested due to automatic review settings February 20, 2026 05:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request corrects the Azure OpenAI API version from an invalid future-dated version "2025-01-01-preview" to the valid "2024-12-01-preview" version. The change ensures the sample agent can properly connect to Azure OpenAI services with the correct API version that supports the features required by the OpenAI Agents SDK.

Changes:

  • Updated Azure OpenAI API version from "2025-01-01-preview" to "2024-12-01-preview" in the agent initialization code

azure_endpoint=endpoint,
api_key=api_key,
api_version="2025-01-01-preview",
api_version="2024-12-01-preview",
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

The documentation file AGENT-CODE-WALKTHROUGH.md at line 86 still references the old API version "2025-01-01-preview". This should be updated to match the new version "2024-12-01-preview" to keep the documentation consistent with the code.

Copilot uses AI. Check for mistakes.
@yashy797 yashy797 closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants