Skip to content

fix: update Azure OpenAI API version default to preview#82072

Merged
clawsweeper[bot] merged 7 commits into
mainfrom
clawsweeper/automerge-openclaw-openclaw-82026
May 15, 2026
Merged

fix: update Azure OpenAI API version default to preview#82072
clawsweeper[bot] merged 7 commits into
mainfrom
clawsweeper/automerge-openclaw-openclaw-82026

Conversation

@clawsweeper

@clawsweeper clawsweeper Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

Makes #82026 merge-ready for the ClawSweeper automerge loop.
The edit pass should inspect the live PR diff, review comments, and failing checks; rebase if needed; keep the contributor branch credited; and stop only when validation is green or an external blocker is proven.

ClawSweeper 🐠 replacement reef notes:

Co-author credit kept:

fish notes: model gpt-5.5, reasoning high; reviewed against d7062f1.

@clawsweeper clawsweeper Bot added agents Agent runtime and tooling size: XS clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge proof: supplied External PR includes structured after-fix real behavior proof. proof: sufficient ClawSweeper judged the real behavior proof convincing. clawsweeper Tracked by ClawSweeper automation labels May 15, 2026
@clawsweeper

clawsweeper Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

Codex review: passed.

Summary
The branch changes the Azure OpenAI Responses transport default API version from 2024-12-01-preview to preview, updates the focused unit assertion, and adds a changelog entry.

Reproducibility: yes. The source PR provides live Azure curl/OpenClaw commands showing dated defaults fail with 400 and api-version=preview succeeds, and current main still resolves an unset env var to the old dated default.

Real behavior proof
Sufficient (live_output): The linked source PR includes redacted live Azure curl, openclaw infer, and openclaw agent output showing preview succeeds and dated API versions fail.

Next step before merge
No repair lane is needed; this is already a writable ClawSweeper replacement PR with no blocking review findings, so checks and the automerge gate should handle it.

Security
Cleared: The diff changes one string default, one test expectation, and changelog text; it does not add dependencies, workflow permissions, secret handling, or new code execution paths.

Review details

Best possible solution:

Land this narrow default change through the existing automerge/check gates while preserving AZURE_OPENAI_API_VERSION for users who need a pinned Azure version.

Do we have a high-confidence way to reproduce the issue?

Yes. The source PR provides live Azure curl/OpenClaw commands showing dated defaults fail with 400 and api-version=preview succeeds, and current main still resolves an unset env var to the old dated default.

Is this the best way to solve the issue?

Yes. Changing only the default constant is the narrowest maintainable fix because the existing env override remains intact and the OpenAI SDK maps apiVersion to the Azure api-version query parameter.

What I checked:

  • Current main default: Current main still sets DEFAULT_AZURE_OPENAI_API_VERSION to 2024-12-01-preview; the PR diff changes this exact constant to preview. (src/agents/openai-transport-stream.ts:70, be166b9ae48d)
  • Current main resolver and Azure client path: resolveAzureOpenAIApiVersion() uses the env override or the default constant, and createAzureOpenAIClient() passes that value as the OpenAI SDK AzureOpenAI apiVersion. (src/agents/openai-transport-stream.ts:394, be166b9ae48d)
  • Focused regression expectation: The existing unit test asserts the unset-env Azure API version default; the PR updates that assertion from the old dated value to preview while preserving env override behavior. (src/agents/openai-transport-stream.test.ts:606, be166b9ae48d)
  • SDK contract: OpenAI JS AzureOpenAI accepts a string apiVersion and assigns it to default query parameter api-version, so the PR changes the actual request query parameter for Azure client calls.
  • Azure Responses contract: Microsoft Learn's Azure OpenAI Responses documentation includes /openai/v1/responses?api-version=preview in its REST examples, matching the proposed default for the Responses route.
  • Current history owner signal: Blame shows the current Azure default, resolver, and client construction in this file came from commit 7e9a86342317a7e4077d13692be3e3075fe8ac90. (src/agents/openai-transport-stream.ts:70, 7e9a86342317)

Likely related people:

  • Peter Steinberger: Git blame and path history show the current Azure default, resolver, Azure client construction, related docs, and tests all date to 7e9a86342317a7e4077d13692be3e3075fe8ac90, and recent main also touches the agents transport area. (role: current area contributor; confidence: high; commits: 7e9a86342317, be166b9ae48d; files: src/agents/openai-transport-stream.ts, src/agents/openai-transport-stream.test.ts, docs/providers/openai.md)

Remaining risk / open question:

  • Live Azure and test validation were not rerun during this read-only review; the verdict relies on the linked source PR's redacted live output plus source, SDK, and Microsoft Learn inspection.

Codex review notes: model gpt-5.5, reasoning high; reviewed against be166b9ae48d.

@openclaw-barnacle openclaw-barnacle Bot removed proof: supplied External PR includes structured after-fix real behavior proof. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels May 15, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
@clawsweeper clawsweeper Bot merged commit a099acc into main May 15, 2026
123 of 134 checks passed
@clawsweeper

clawsweeper Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

🦞✅
ClawSweeper merged this PR after the passing review.

Source: clawsweeper[bot]
Feedback: structured ClawSweeper verdict: pass (sha=d7062f162fb53f7a50eab6f406b5509580049584)
Merge status: merged by ClawSweeper automerge
Merged at: 2026-05-15T08:42:37Z
Merge commit: a099acc557e0

What merged:

  • The branch changes the Azure OpenAI Responses transport default API version from 2024-12-01-preview to preview, updates the focused unit assertion, and adds a changelog entry.
  • Reproducibility: yes. The source PR provides live Azure curl/OpenClaw commands showing dated defaults fail w ... api-version=preview succeeds, and current main still resolves an unset env var to the old dated default.

Automerge notes:

  • PR branch already contained follow-up commit before automerge: fix: update DEFAULT_AZURE_OPENAI_API_VERSION to 2025-04-01-preview (i…
  • PR branch already contained follow-up commit before automerge: fix: use preview literal for AZURE_OPENAI_API_VERSION
  • PR branch already contained follow-up commit before automerge: fix: repair Azure API version PR diff and tests
  • PR branch already contained follow-up commit before automerge: fix: keep Azure image API version default
  • PR branch already contained follow-up commit before automerge: fix: update Azure OpenAI API version default to preview

The automerge loop is complete.

Automerge progress:

  • 2026-05-15 08:42:22 UTC review passed d7062f162fb5 (structured ClawSweeper verdict: pass (sha=d7062f162fb53f7a50eab6f406b5509580049...)
  • 2026-05-15 08:42:39 UTC merged d7062f162fb5 (merged by ClawSweeper automerge)

@clawsweeper clawsweeper Bot deleted the clawsweeper/automerge-openclaw-openclaw-82026 branch May 15, 2026 08:42
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
markfietje pushed a commit to markfietje/openclaw that referenced this pull request May 20, 2026
Summary:
- The branch changes the Azure OpenAI Responses transport default API version from `2024-12-01-preview` to `preview`, updates the focused unit assertion, and adds a changelog entry.
- Reproducibility: yes. The source PR provides live Azure curl/OpenClaw commands showing dated defaults fail w ...  `api-version=preview` succeeds, and current main still resolves an unset env var to the old dated default.

Automerge notes:
- PR branch already contained follow-up commit before automerge: fix: update DEFAULT_AZURE_OPENAI_API_VERSION to 2025-04-01-preview (i…
- PR branch already contained follow-up commit before automerge: fix: use preview literal for AZURE_OPENAI_API_VERSION
- PR branch already contained follow-up commit before automerge: fix: repair Azure API version PR diff and tests
- PR branch already contained follow-up commit before automerge: fix: keep Azure image API version default
- PR branch already contained follow-up commit before automerge: fix: update Azure OpenAI API version default to preview

Validation:
- ClawSweeper review passed for head d7062f162fb53f7a50eab6f406b5509580049584.
- Required merge gates passed before the squash merge.

Prepared head SHA: d7062f162fb53f7a50eab6f406b5509580049584
Review: openclaw/openclaw#82072 (comment)

Co-authored-by: Leo Ge <116452300+leoge007@users.noreply.github.com>
Co-authored-by: leoge007 <leoge@users.noreply.github.com>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
markfietje pushed a commit to markfietje/openclaw that referenced this pull request May 20, 2026
Summary:
- The branch changes the Azure OpenAI Responses transport default API version from `2024-12-01-preview` to `preview`, updates the focused unit assertion, and adds a changelog entry.
- Reproducibility: yes. The source PR provides live Azure curl/OpenClaw commands showing dated defaults fail w ...  `api-version=preview` succeeds, and current main still resolves an unset env var to the old dated default.

Automerge notes:
- PR branch already contained follow-up commit before automerge: fix: update DEFAULT_AZURE_OPENAI_API_VERSION to 2025-04-01-preview (i…
- PR branch already contained follow-up commit before automerge: fix: use preview literal for AZURE_OPENAI_API_VERSION
- PR branch already contained follow-up commit before automerge: fix: repair Azure API version PR diff and tests
- PR branch already contained follow-up commit before automerge: fix: keep Azure image API version default
- PR branch already contained follow-up commit before automerge: fix: update Azure OpenAI API version default to preview

Validation:
- ClawSweeper review passed for head d7062f162fb53f7a50eab6f406b5509580049584.
- Required merge gates passed before the squash merge.

Prepared head SHA: d7062f162fb53f7a50eab6f406b5509580049584
Review: openclaw/openclaw#82072 (comment)

Co-authored-by: Leo Ge <116452300+leoge007@users.noreply.github.com>
Co-authored-by: leoge007 <leoge@users.noreply.github.com>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
Summary:
- The branch changes the Azure OpenAI Responses transport default API version from `2024-12-01-preview` to `preview`, updates the focused unit assertion, and adds a changelog entry.
- Reproducibility: yes. The source PR provides live Azure curl/OpenClaw commands showing dated defaults fail w ...  `api-version=preview` succeeds, and current main still resolves an unset env var to the old dated default.

Automerge notes:
- PR branch already contained follow-up commit before automerge: fix: update DEFAULT_AZURE_OPENAI_API_VERSION to 2025-04-01-preview (i…
- PR branch already contained follow-up commit before automerge: fix: use preview literal for AZURE_OPENAI_API_VERSION
- PR branch already contained follow-up commit before automerge: fix: repair Azure API version PR diff and tests
- PR branch already contained follow-up commit before automerge: fix: keep Azure image API version default
- PR branch already contained follow-up commit before automerge: fix: update Azure OpenAI API version default to preview

Validation:
- ClawSweeper review passed for head d7062f1.
- Required merge gates passed before the squash merge.

Prepared head SHA: d7062f1
Review: openclaw#82072 (comment)

Co-authored-by: Leo Ge <116452300+leoge007@users.noreply.github.com>
Co-authored-by: leoge007 <leoge@users.noreply.github.com>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
Summary:
- The branch changes the Azure OpenAI Responses transport default API version from `2024-12-01-preview` to `preview`, updates the focused unit assertion, and adds a changelog entry.
- Reproducibility: yes. The source PR provides live Azure curl/OpenClaw commands showing dated defaults fail w ...  `api-version=preview` succeeds, and current main still resolves an unset env var to the old dated default.

Automerge notes:
- PR branch already contained follow-up commit before automerge: fix: update DEFAULT_AZURE_OPENAI_API_VERSION to 2025-04-01-preview (i…
- PR branch already contained follow-up commit before automerge: fix: use preview literal for AZURE_OPENAI_API_VERSION
- PR branch already contained follow-up commit before automerge: fix: repair Azure API version PR diff and tests
- PR branch already contained follow-up commit before automerge: fix: keep Azure image API version default
- PR branch already contained follow-up commit before automerge: fix: update Azure OpenAI API version default to preview

Validation:
- ClawSweeper review passed for head d7062f1.
- Required merge gates passed before the squash merge.

Prepared head SHA: d7062f1
Review: openclaw#82072 (comment)

Co-authored-by: Leo Ge <116452300+leoge007@users.noreply.github.com>
Co-authored-by: leoge007 <leoge@users.noreply.github.com>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
SYU8384 pushed a commit to SYU8384/openclaw that referenced this pull request Jun 3, 2026
Summary:
- The branch changes the Azure OpenAI Responses transport default API version from `2024-12-01-preview` to `preview`, updates the focused unit assertion, and adds a changelog entry.
- Reproducibility: yes. The source PR provides live Azure curl/OpenClaw commands showing dated defaults fail w ...  `api-version=preview` succeeds, and current main still resolves an unset env var to the old dated default.

Automerge notes:
- PR branch already contained follow-up commit before automerge: fix: update DEFAULT_AZURE_OPENAI_API_VERSION to 2025-04-01-preview (i…
- PR branch already contained follow-up commit before automerge: fix: use preview literal for AZURE_OPENAI_API_VERSION
- PR branch already contained follow-up commit before automerge: fix: repair Azure API version PR diff and tests
- PR branch already contained follow-up commit before automerge: fix: keep Azure image API version default
- PR branch already contained follow-up commit before automerge: fix: update Azure OpenAI API version default to preview

Validation:
- ClawSweeper review passed for head d7062f1.
- Required merge gates passed before the squash merge.

Prepared head SHA: d7062f1
Review: openclaw#82072 (comment)

Co-authored-by: Leo Ge <116452300+leoge007@users.noreply.github.com>
Co-authored-by: leoge007 <leoge@users.noreply.github.com>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Summary:
- The branch changes the Azure OpenAI Responses transport default API version from `2024-12-01-preview` to `preview`, updates the focused unit assertion, and adds a changelog entry.
- Reproducibility: yes. The source PR provides live Azure curl/OpenClaw commands showing dated defaults fail w ...  `api-version=preview` succeeds, and current main still resolves an unset env var to the old dated default.

Automerge notes:
- PR branch already contained follow-up commit before automerge: fix: update DEFAULT_AZURE_OPENAI_API_VERSION to 2025-04-01-preview (i…
- PR branch already contained follow-up commit before automerge: fix: use preview literal for AZURE_OPENAI_API_VERSION
- PR branch already contained follow-up commit before automerge: fix: repair Azure API version PR diff and tests
- PR branch already contained follow-up commit before automerge: fix: keep Azure image API version default
- PR branch already contained follow-up commit before automerge: fix: update Azure OpenAI API version default to preview

Validation:
- ClawSweeper review passed for head d7062f1.
- Required merge gates passed before the squash merge.

Prepared head SHA: d7062f1
Review: openclaw#82072 (comment)

Co-authored-by: Leo Ge <116452300+leoge007@users.noreply.github.com>
Co-authored-by: leoge007 <leoge@users.noreply.github.com>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge clawsweeper Tracked by ClawSweeper automation size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants