You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: GPT-5.6 Bedrock reasoning variants fail with SDK 4.0.158 #45405
GPT-5.6 OpenAI models on Amazon Bedrock fail when a reasoning-effort variant is selected. OpenCode currently pins @ai-sdk/[email protected], which emits an invalid reasoning field for prefixed profiles such as global.openai.gpt-5.6-luna; Bedrock returns HTTP 400, for example Unknown parameter: reasoningConfig.
The upstream fix is published in @ai-sdk/[email protected]. Update the dependency in both packages/core/package.json and packages/opencode/package.json, regenerate bun.lock, and verify the request.
Upstream history: AI SDK issue #19403, main fix #19420, v6 backport #19624, release merge #19752, and published v6 release #19775. The published 4.0.165 source sends nested reasoning.effort for GPT-5.x and retains flat reasoning_effort for gpt-oss.
Plugins
None
OpenCode version
v1.18.23
Steps to reproduce
Configure Amazon Bedrock with valid credentials.
Select global.openai.gpt-5.6-luna.
Select a non-default reasoning-effort variant.
Send a prompt.
Observe the Bedrock Converse HTTP 400 response.
Expected: the request uses additionalModelRequestFields.reasoning.effort and succeeds.
Screenshot and/or share link
Not applicable; the failure is in the provider request payload.
This follows the required Bug Report template. The requested fix is a dependency update to published @ai-sdk/[email protected]; no OpenCode runtime provider change is expected.
Taking this: bump @ai-sdk/amazon-bedrock 4.0.158 → 4.0.165 in packages/core and packages/opencode, regenerate the lockfile, and check the reasoning variant request path against the upstream fix.
Activity
mmurilo commentedon Aug 26, 2026
This follows the required Bug Report template. The requested fix is a dependency update to published
@ai-sdk/[email protected]; no OpenCode runtime provider change is expected.pengzh1 commentedon Aug 27, 2026
Taking this: bump
@ai-sdk/amazon-bedrock4.0.158 → 4.0.165 inpackages/coreandpackages/opencode, regenerate the lockfile, and check the reasoning variant request path against the upstream fix.