fix: update Azure OpenAI API version default to preview (#82072) · openclaw/openclaw@a099acc
clawsweeper
·
2026-05-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,6 +34,7 @@ Docs: https://docs.openclaw.ai
|
34 | 34 | |
35 | 35 | ### Fixes |
36 | 36 | |
| 37 | +- Agents/Azure OpenAI Responses: default unset Azure OpenAI API versions to `preview` so `/openai/v1/responses` calls use Azure's current Responses API route. (#82026) Thanks @leoge007. |
37 | 38 | - Agents: retry empty final turns for generic `anthropic-messages` providers instead of limiting non-visible recovery to Kimi, so custom/proxied Anthropic-compatible routes can recover with a visible answer. Addresses #46080. Thanks @wmgx, @w1tv, and @iFwu. |
38 | 39 | - Control UI: rotate browser service-worker caches per build so updated Gateways are less likely to keep serving stale dashboard bundles that trigger protocol mismatch errors. |
39 | 40 | - Discord: report unresolved configured bot-token SecretRefs during startup instead of treating the account as unconfigured. (#82009) Thanks @giodl73-repo. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -604,7 +604,7 @@ describe("openai transport stream", () => {
|
604 | 604 | }); |
605 | 605 | |
606 | 606 | it("uses a valid Azure API version default when the environment is unset", () => { |
607 | | -expect(resolveAzureOpenAIApiVersion({})).toBe("2024-12-01-preview"); |
| 607 | +expect(resolveAzureOpenAIApiVersion({})).toBe("preview"); |
608 | 608 | expect(resolveAzureOpenAIApiVersion({ AZURE_OPENAI_API_VERSION: "2025-01-01-preview" })).toBe( |
609 | 609 | "2025-01-01-preview", |
610 | 610 | ); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -68,7 +68,7 @@ import { stripSystemPromptCacheBoundary } from "./system-prompt-cache-boundary.j
|
68 | 68 | import { transformTransportMessages } from "./transport-message-transform.js"; |
69 | 69 | import { mergeTransportMetadata, sanitizeTransportPayloadText } from "./transport-stream-shared.js"; |
70 | 70 | |
71 | | -const DEFAULT_AZURE_OPENAI_API_VERSION = "2024-12-01-preview"; |
| 71 | +const DEFAULT_AZURE_OPENAI_API_VERSION = "preview"; |
72 | 72 | const OPENAI_CODEX_RESPONSES_EMPTY_INPUT_TEXT = " "; |
73 | 73 | const GEMINI_THOUGHT_SIGNATURE_VALIDATOR_SKIP = "skip_thought_signature_validator"; |
74 | 74 | const AZURE_RESPONSES_FIRST_EVENT_TIMEOUT_MS = 30_000; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。