Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/openai/sample-agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(self, openai_api_key: str | None = None):
self.openai_client = AsyncAzureOpenAI(
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.
)
# Use Azure deployment name for Azure OpenAI
model_name = os.getenv("AZURE_OPENAI_DEPLOYMENT", "gpt-4o-mini")
Expand Down
Loading