Skip to content

[Feat] Add Amazon Ergo 1.0 to the Bedrock model list - #2797

Open
zoomote[bot] wants to merge 1 commit into
mainfrom
feat/amazon-ergo-1.0-bedrock-2tn0m2adtv443
Open

zoomote[bot] wants to merge 1 commit into
mainfrom
feat/amazon-ergo-1.0-bedrock-2tn0m2adtv443

Conversation

@zoomote

@zoomote zoomote Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

​Opened on behalf of @taltas. Follow up by mentioning @roomote, in the web UI, or in Discord.

Related GitHub Issue

Closes: N/A — this PR has no approved issue yet. It was opened on direct request to add Amazon's new Ergo 1.0 model. A maintainer can link an issue before review.

Description

Amazon added the Ergo 1.0 model (amazon.ergo-1.0) to Bedrock. This PR adds the model to the static Bedrock registry so users can select it from the model dropdown.

The new entry carries the AWS model card facts: 1,048,576-token context window, 131,072-token maximum output, text input only, and Global CRIS list prices of $1.00 input / $3.00 output / $1.25 cache write (30-minute TTL) / $0.03 cache read per million tokens. US CRIS bills $1.10 / $3.30 / $1.375 / $0.033.

The model works only through cross-region inference. The entry joins BEDROCK_GLOBAL_INFERENCE_MODEL_IDS, so the global.amazon.ergo-1.0 profile works when global inference is on. The existing region-prefix logic already builds us.amazon.ergo-1.0 from the region mapping, because parseBaseModelId strips profile prefixes by name and does not depend on the -v1:0 suffix. No provider code changes were needed.

One capability gap: Ergo adjusts reasoning through effort levels, not budget_tokens. The Bedrock handler has no generic effort path, and supportsReasoningBudget would produce a wrong request shape. The entry therefore sets no reasoning flags, and Zoo Code invokes Ergo at its default effort. The registry entry documents this.

Test Procedure

New tests cover the suffix-less model ID in src/api/providers/__tests__/bedrock-inference-profiles.spec.ts:

  • us. prefix applies with cross-region inference on a US region.
  • global. prefix applies when global inference is on, and wins when both are on.
  • Prefixed IDs resolve back to the registry entry, so the profile stays invokable with correct pricing and context data.

Reviewers can repeat with, from the repository root:

  • pnpm exec vitest run src/api/providers/__tests__/bedrock-inference-profiles.spec.ts (29 passed)
  • pnpm exec vitest run src/api/providers/__tests__/bedrock.spec.ts (168 passed)
  • pnpm test (14/14 turbo tasks pass)
  • pnpm run check-types (passes)

Also verified with no change needed: the OpenRouter and Vercel AI Gateway model lists stay dynamic, so amazon/ergo-1.0 is covered there by the fetchers. OPEN_ROUTER_PROMPT_CACHING_MODELS and the reasoning-budget sets must not gain Ergo, because Ergo uses neither Anthropic-style cache breakpoints nor budget tokens. The Bedrock embedding list, e2e fixtures, and CLI lists have no Ergo touchpoint.

Recorded Stream (new provider only)

Not applicable. Bedrock is an existing provider; this PR adds one model.

Pre-Submission Checklist

  • Issue Linked: This PR has no approved GitHub Issue yet (see note above).
  • Listing Discussion (new provider or MCP server only): Not applicable.
  • Recorded Stream (new provider only): Not applicable.
  • Scope: The change is one model addition plus tests.
  • Self-Review: Reviewed the diff with care.
  • Writing Style: Title and description follow ASD-STE100.
  • Testing: New tests cover the new model ID and prefix handling.
  • Test Helpers (test changes only): Not applicable.
  • Visual Snapshot (UI changes only): Not added. The change adds one option to an existing dropdown list. Users see it only after opening the dropdown, so no layout, theme, or state surface changes. See "Visual Snapshots" below.
  • Documentation Impact: The paired docs PR covers it (see "Documentation Updates").
  • Contribution Guidelines: Read and followed.

Visual Snapshots

No *.visual.tsx snapshot was added. The change is a data-level dropdown option with no at-a-glance visual surface. A settings screenshot was attempted through the webview dev server in the task sandbox, but the settings view renders only inside the VS Code extension host, so no genuine screenshot was possible without an editor session. The docs PR states this instead of a simulated capture.

Videos (interaction / animation only)

Not applicable.

Documentation Updates

Additional Notes

The pricing in the registry uses Global CRIS as the listed prices, per the request. The AWS model card is the source: https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0.html

Related PRs

@zoomote zoomote Bot assigned taltas Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Review status

This PR was opened by an automated account. A human maintainer must verify the change intent, provenance, and validation before merging.

Current step: Required CI passed. Waiting for automated review of the latest commit.

If automated review does not start, a maintainer must restart it.

Review-state labels are managed by this workflow; do not edit them manually. community-approved is managed the same way — do not add or remove it manually. It signals a fresh community code approval for the current head as an advisory priority only; maintainer review is still required.

@codecov

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@taltas
taltas marked this pull request as ready for review December 2, 2026 19:42
@github-actions github-actions Bot added coderabbit-review-active Required CI passed; CodeRabbit review is active awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit labels Dec 2, 2026

This branch has not been deployed

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

Labels

awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit coderabbit-review-active Required CI passed; CodeRabbit review is active

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant