Skip to content

fix(bedrock): remove :0 suffix from Anthropic model IDs#2750

Open
i010542 wants to merge 3 commits intoantinomyhq:mainfrom
i010542:fix/forge-bedrock-2644
Open

fix(bedrock): remove :0 suffix from Anthropic model IDs#2750
i010542 wants to merge 3 commits intoantinomyhq:mainfrom
i010542:fix/forge-bedrock-2644

Conversation

@i010542
Copy link
Copy Markdown

@i010542 i010542 commented Mar 31, 2026

Summary

Bedrock API rejects model IDs with :0 suffix for Anthropic models (e.g., anthropic.claude-3-5-sonnet-20241022-v2:0). This fix removes the :0 suffix before adding the regional prefix.

Changes

  • Modified transform_model_id() in bedrock.rs to strip :0 suffix from Anthropic model IDs before adding regional prefix

Fixes

Fixes #2644

i010542 and others added 3 commits March 24, 2026 20:02
…tibility

When the zsh-vi-mode plugin (jeffreytse/zsh-vi-mode) is active, the
Enter key in vi-command mode does not trigger forge's colon commands.
Users report 'command not found: :model' and similar errors.

Root cause: bindkey '^M' only sets the binding in the current keymap.
In vicmd mode, Enter is bound to vi-accept-line, not forge-accept-line.

Fix: also bind Enter and Tab in vicmd mode when zsh-vi-mode is detected.
Detection uses $ZVM_MODE (zsh-vi-mode plugin) or bindkey -lL main
(native vi mode via bindkey -v).

Fixes: antinomyhq#2681
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Resolves: antinomyhq#2662

- Add FORGE_FOLDER_PATH env var to override default ~/forge path
- Priority: FORGE_FOLDER_PATH > ~/forge > ./forge fallback
- No breaking changes to existing behavior

Co-Authored-By: Atlas Bounty Hunter <atlas@opencode.ai>
Bedrock API rejects model IDs with :0 suffix for Anthropic models.
This change removes the :0 suffix before adding the regional prefix.

Fixes antinomyhq#2644

Co-Authored-By: ForgeCode <noreply@forgecode.dev>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Invalid model identifier for Claude Opus 4.6 via Bedrock

2 participants