Repository navigation
Description
Summary
#87737 appears fixed for the literal provider id microsoft-foundry, but the same DeepSeek V4 suppression does not appear to apply to Microsoft Foundry alias providers such as microsoft-foundry-9433.
On current stable, the alias-backed model still fails with:
400 Unrecognized request argument supplied: thinking
This looks like an OpenClaw provider-id gap rather than a deployment/auth/config problem.
Version
- OpenClaw
2026.6.1
Repro
Configured model:
microsoft-foundry-9433/DeepSeek-V4-Pro
One-shot probe:
openclaw infer model run --gateway \
--model microsoft-foundry-9433/DeepSeek-V4-Pro \
--prompt 'Reply with exactly FOUNDRY_V4_PRO_OK and nothing else.' \
--jsonObserved result:
FailoverError: LLM request failed: provider rejected the request schema or tool payload.- raw provider error:
400 Unrecognized request argument supplied: thinking
Relevant gateway details from the failing run:
- provider:
microsoft-foundry-9433 - model:
DeepSeek-V4-Pro - failure kind: schema / format
A/B proof that this is provider-id specific
I performed a temporary config inversion to isolate whether this was our deployment setup or OpenClaw handling:
- Moved the working base Foundry resource behind a temporary alias.
- Promoted the exact same
9433DeepSeek V4 Pro resource to plainmicrosoft-foundry. - Re-ran the same explicit probe, now against
microsoft-foundry/DeepSeek-V4-Pro. - Restored the config immediately after the test.
Result under inverted config:
- success
- provider:
microsoft-foundry - model:
DeepSeek-V4-Pro - output:
INVERT_TEST_OK
So the same Foundry deployment:
- fails as
microsoft-foundry-9433/DeepSeek-V4-Pro - succeeds as
microsoft-foundry/DeepSeek-V4-Pro
Expected
Microsoft Foundry DeepSeek V4 protection should apply to Foundry aliases / equivalent provider profiles, not only the literal provider id microsoft-foundry.
Actual
Alias-backed Foundry DeepSeek V4 providers still appear to receive a top-level thinking field and fail with:
400 Unrecognized request argument supplied: thinking
Likely fix shape
The suppression logic added for #87737 likely keys off provider === "microsoft-foundry" and should instead recognize alias-backed Foundry provider configs as equivalent for this compatibility rule.
Related
- Fixed base issue:
#87737
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 5, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 4, 2026, 10:45 PM ET / 02:45 UTC.
Summary
Keep open: current main still has a literal-provider-only Foundry exclusion, so
microsoft-foundry-9433/DeepSeek-V4-Proremains eligible for the fallback wrapper that injects top-levelthinking.Reproducibility: yes. from source inspection: a provider id like
microsoft-foundry-9433is not equal tomicrosoft-foundry, so the DeepSeek V4 fallback wrapper can still patch the payload withthinking. I did not run the live Foundry probe because credentials and an external deployment are required.Next step
A focused fix can update the Foundry-equivalence gate and add alias-provider regression coverage without adding config or changing unrelated provider behavior.
Review details
Best possible solution:
Ship a narrow provider-equivalence fix so Foundry alias/configured provider ids skip top-level
thinkinglike canonicalmicrosoft-foundry, while unrelated OpenAI-compatible DeepSeek V4 proxies keep the wrapper.Do we have a high-confidence way to reproduce the issue?
Yes from source inspection: a provider id like
microsoft-foundry-9433is not equal tomicrosoft-foundry, so the DeepSeek V4 fallback wrapper can still patch the payload withthinking. I did not run the live Foundry probe because credentials and an external deployment are required.Is this the best way to solve the issue?
No current fix is present. The maintainable fix is to recognize Foundry-equivalent configured provider ids or honor the resolved compat contract before applying the generic DeepSeek V4 fallback.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
compat.thinkingFormat; maintainers should decide whether to refresh that PR or land a narrower alias-equivalence fix.Codex review notes: model gpt-5.5, reasoning high; reviewed against 2f00fbf28ed9.
Label changes
Label changes:
P1: A released gateway model path is reported to fail at provider schema validation for a real Microsoft Foundry DeepSeek V4 configuration.impact:auth-provider: The affected behavior is model-provider routing and request-shape compatibility for a configured provider profile.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P1: A released gateway model path is reported to fail at provider schema validation for a real Microsoft Foundry DeepSeek V4 configuration.impact:auth-provider: The affected behavior is model-provider routing and request-shape compatibility for a configured provider profile.Evidence reviewed
Acceptance criteria:
What I checked:
microsoft-foundry-9433/DeepSeek-V4-Prowith400 Unrecognized request argument supplied: thinking, while the same deployment succeeds after being promoted tomicrosoft-foundry.model.provider !== "microsoft-foundry"; an alias such asmicrosoft-foundry-9433does not match that exclusion. (src/agents/embedded-agent-runner/extra-params.ts:922, 2f00fbf28ed9)createDeepSeekV4OpenAICompatibleThinkingWrapperwritespayload.thinkingandpayload.reasoning_effortwhenshouldPatchModelreturns true. (src/plugin-sdk/provider-stream-shared.ts:441, 2f00fbf28ed9)applyProvider: "microsoft-foundry"andprovider: "microsoft-foundry"; it does not cover alias-backed Foundry provider ids. (src/agents/embedded-agent-runner-extraparams.test.ts:749, 2f00fbf28ed9)model.provider !== "microsoft-foundry"guard and the canonical-provider test for the earlier Foundry DeepSeek V4 issue. (src/agents/embedded-agent-runner/extra-params.ts:926, 0c74f18a1c09)src/agents/embedded-agent-runner-extraparams.test.ts:740, 2e08f0f4221f)Likely related people:
microsoft-foundryexclusion and its regression test. (role: prior fix author; confidence: high; commits: 0c74f18a1c09; files:src/agents/embedded-agent-runner/extra-params.ts,src/agents/embedded-agent-runner-extraparams.test.ts)src/agents/embedded-agent-runner/extra-params.ts,src/agents/embedded-agent-runner-extraparams.test.ts,src/agents/openai-transport-stream.ts)extensions/deepseek/stream.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.fix(agent): exclude Microsoft Foundry alias providers — address lint …
fix(agents): suppress DeepSeek thinking for Foundry aliases
fix(agents): suppress DeepSeek thinking for Foundry aliases