[PR #8092] fix(bedrock): use reasoningConfig for Anthropic models on Bedrock #12620

Closed
opened 2026-02-16 18:17:31 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8092

State: closed
Merged: Yes


What does this PR do?

Added Regex Check for anthropic models to add reasoning for variants.

Bedrocks Model id's can be set as:

  • Global (For Global Inference) global. prefix
  • US (Cross Region) us. prefix.
  • Region based (No prefix)

How did you verify your code works?

Tested locally with bun run dev with Bedrock Provider with variants set:

  • Before Change - no thinking tokens
  • After change - thinking tokens

Fixes #7357

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8092 **State:** closed **Merged:** Yes --- ### What does this PR do? Added Regex Check for anthropic models to add reasoning for variants. Bedrocks Model id's can be set as: - Global (For Global Inference) `global.` prefix - US (Cross Region) `us.` prefix. - Region based (No prefix) ### How did you verify your code works? Tested locally with bun run dev with Bedrock Provider with variants set: - Before Change - no thinking tokens - After change - thinking tokens Fixes #7357
yindo added the pull-request label 2026-02-16 18:17:31 -05:00
yindo closed this issue 2026-02-16 18:17:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12620