Skip to content

[docs] Use a current GA API version in the Azure OpenAI examples - #935

Open
weiqingy wants to merge 1 commit into
apache:mainfrom
weiqingy:docs-azure-api-version
Open

[docs] Use a current GA API version in the Azure OpenAI examples#935
weiqingy wants to merge 1 commit into
apache:mainfrom
weiqingy:docs-azure-api-version

Conversation

@weiqingy

Copy link
Copy Markdown
Collaborator

Linked issue: #280

Purpose of change

The Azure OpenAI documentation used 2024-02-15-preview in the Python parameter table and example, and 2024-02-01 in the Java ones. Both are early-2024 versions, and the two languages disagreed with each other for no particular reason.

This uses 2024-10-21 in all four places. That is the most recent stable version listed in the AzureOpenAIServiceVersion enum of the openai-java SDK this project already depends on, so a documented example stays consistent with what the client actually supports.

There is a second reason to prefer a newer version here. Azure gates structured outputs on api-version 2024-08-01-preview and later, so a user who copies the current example and then passes an output_schema gets the prompt-engineering fallback rather than the provider's native path, with nothing indicating why. That was harmless while nothing read the api-version, and becomes a papercut with the native structured-output work in #919 and #930.

Documenting which providers support native structured output is a separate change and is not included here, since that work is still in review.

Tests

Not applicable, documentation only. No code or example semantics change beyond the version string; the four sites are the two parameter tables and the two connection examples.

API

No.

Documentation

  • doc-needed
  • doc-not-needed
  • doc-included

The Azure OpenAI parameter tables and examples used 2024-02-15-preview on
the Python side and 2024-02-01 on the Java side. Both are early-2024
versions, and the two languages disagreed for no reason.

Use 2024-10-21 in all four places. It is the most recent stable version
in the AzureOpenAIServiceVersion enum of the openai-java SDK this project
already depends on, so an example that names it stays consistent with
what the client supports.
@github-actions github-actions Bot added doc-included Your PR already contains the necessary documentation updates. fixVersion/0.4.0 priority/major Default priority of the PR or issue. labels Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-included Your PR already contains the necessary documentation updates. fixVersion/0.4.0 priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant