Description
Regression after #46134: V2 reads /api/v2/config, but existing Console OpenAI variants can store SDK-style reasoning fields in body. They now reach the upstream API unchanged and fail with 400 Unknown parameter: reasoningEffort. Native reasoning bodies work.
Plugins
Built-in OpenCode Console provider.
OpenCode version
0.0.0-dev-18806; earlier 0.0.0-beta-18743 interprets the existing configuration through /api/config.
Steps to reproduce
- Use a working Console model with package
aisdk:@ai-sdk/openai.
- Configure a
high variant with body: {"reasoningEffort":"high","reasoningSummary":"auto"}.
- Select that variant and send a prompt.
- Observe HTTP 400; the same model without the variant succeeds.
Expected: preserve existing variant behavior while accepting native body.reasoning and keeping Console configuration generic.
Operating System
macOS arm64.
Description
Regression after #46134: V2 reads
/api/v2/config, but existing Console OpenAI variants can store SDK-style reasoning fields inbody. They now reach the upstream API unchanged and fail with400 Unknown parameter: reasoningEffort. Native reasoning bodies work.Plugins
Built-in OpenCode Console provider.
OpenCode version
0.0.0-dev-18806; earlier0.0.0-beta-18743interprets the existing configuration through/api/config.Steps to reproduce
aisdk:@ai-sdk/openai.highvariant withbody: {"reasoningEffort":"high","reasoningSummary":"auto"}.Expected: preserve existing variant behavior while accepting native
body.reasoningand keeping Console configuration generic.Operating System
macOS arm64.