Skip to content

fix(core): hide newer Bedrock bare IDs that require inference profiles - #54486

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
kimnamu:bedrock-profile-ids
Oct 16, 2026
Merged

rekram1-node merged 1 commit into
anomalyco:devfrom
kimnamu:bedrock-profile-ids

Conversation

@kimnamu

@kimnamu kimnamu commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Thanks @rekram1-node for moving the Bedrock exclusion into the models.dev plugin in #48081; that made this a six-row follow-up.

Issue for this PR

Closes #54485

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds six bare Bedrock IDs to BEDROCK_PROFILE_ONLY_IDS: Claude Sonnet 5.5 and Haiku 5.5 (both released after #48081), Llama 4 Maverick/Scout and Palmyra X4/X5. They go through Converse, V2 sends the ID unchanged, and Bedrock only accepts them as inference profiles, so the unsuffixed picker entry fails on every call. Their us./global. twins stay.

Opus 5.5 stays visible because it is ON_DEMAND in eu-west-2 (a live call there returned 200), the same reason the comment gives for 4.6, so the comment now names it. I did not add a test, since #48081 dropped the list-pinned one.

How did you verify your code works?

dev @ e31136b this PR
six bare IDs in Model.available() (models.dev catalog through ModelsDevPlugin) 6 offered 0 offered
us./global. twins, bare Opus 5.5 and Sonnet 4.6, Mantle openai.gpt-6-sol offered offered (unchanged)
live Converse with a bare ID ValidationException (on-demand not supported) entry no longer offered
live Converse with the us. twin 200 200
$ bun test test/plugin/models-dev.test.ts test/plugin/provider-amazon-bedrock.test.ts
 27 pass
 0 fail

bun typecheck in packages/core, oxlint and prettier pass. The full probe table is in #54485.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. On the base, running the models.dev catalog through ModelsDevPlugin offers all six bare IDs for amazon-bedrock. With this change, all six are hidden. Their us./global. profile versions, bare Opus 5.5 and bare Sonnet 4.6 stay available. All six IDs match bare catalog entries exactly, and none is routed to Mantle. I couldn't check the Bedrock-side ValidationException without AWS credentials, so that part relies on your probes in #54485. The existing models-dev and amazon-bedrock plugin tests pass, and packages/core type-checks.

Public API: unchanged. This only filters which catalog entries are offered.

No concerns.

@rekram1-node
rekram1-node merged commit e3d5a3b into anomalyco:dev Oct 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[V2] Bedrock: bare Sonnet 5.5 / Haiku 5.5 (and Llama 4, Palmyra) IDs are offered but only work as inference profiles

2 participants