Skip to content

feat: add modern Claude models []#10706

Merged
Mitch Goudy (mgoudy91) merged 4 commits intomasterfrom
feature/bedrock-modern-models
Mar 18, 2026
Merged

feat: add modern Claude models []#10706
Mitch Goudy (mgoudy91) merged 4 commits intomasterfrom
feature/bedrock-modern-models

Conversation

@mgoudy91
Copy link
Contributor

@mgoudy91 Mitch Goudy (mgoudy91) commented Mar 17, 2026

Purpose

A customer using the AI Content Generator powered by Amazon Bedrock app is on Claude v3 Sonnet, which AWS has marked EOL (July 2025) and is already removed in most regions. They need a supported path to newer Claude models. This change adds current Bedrock Claude options and keeps all existing models so current configs keep working.

Approach

  • Model list: The app’s model list is hard-coded in featuredModels.ts. We added five modern Claude options (Sonnet 4.6, 4.5, 4; 3.5 Haiku; 3 Haiku) at the top and left the existing five (v3 Sonnet, v2.1, Instant, Llama 2, Mixtral) unchanged. No new model classes—all use the existing ClaudeModel and same anthropic_version request format.
  • Default: Default model is now Claude Sonnet 4.6 (first in the array) so new installs get a non-EOL model.
  • Copy: Config help text now recommends “Claude Sonnet 4.6” instead of “v3 Sonnet”.
  • Tests: Model.spec.tsx mock and assertions updated so the new default appears in the model list and is asserted.

Model IDs are from AWS Bedrock model IDs.

LavaMoat allow-scripts (Shai-Hulud response)

This app uses @lavamoat/allow-scripts so that esbuild (used by Vite) can run its lifecycle scripts and install the right platform binary. That’s needed because the repo has ignore-scripts=true in the root .npmrc (Shai-Hulud supply-chain hardening), so normal install scripts don’t run. Contentful context here

  • Whitelisted: vite>esbuild and @originjs/vite-plugin-commonjs>esbuild (so their postinstall can run).
  • CI: After npm ci / bootstrap, we run npm run allow-scripts for this app so those scripts run and the Linux binary is available.
  • Local: After npm install, run npm run allow-scripts once so the correct esbuild binary is installed for your OS.

Testing steps

  1. Open the app’s Config screen in an environment where the app is installed.
  2. In Machine Learning Model, confirm the list includes both Anthropic Claude Sonnet 4.6 (and other new options) and the existing models (e.g. v3 Sonnet, v2.1, Llama 2, Mixtral).
  3. With valid AWS credentials and a region that has the new models, confirm Sonnet 4.6 (and others) can be selected and that “Not available in region” / “Access not granted” still appear for models not in the account/region.
  4. Save config with Sonnet 4.6 (or another new model), open the Content Generator dialog from the sidebar, and run a short generation to confirm the chosen model is used.

Breaking Changes

None. Existing installs keep their saved model; if that model is still available in Bedrock it continues to work. New installs default to Claude Sonnet 4.6. No API or config schema changes.

Dependencies and/or References

Deployment

Standard app deploy; no extra deployment steps or risks. After release, customers can switch to the new models from the app config.

@mgoudy91 Mitch Goudy (mgoudy91) requested a review from a team as a code owner March 17, 2026 23:15
Copilot AI review requested due to automatic review settings March 17, 2026 23:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds newer Amazon Bedrock Claude model options to the Bedrock Content Generator app to provide a supported upgrade path away from EOL Claude v3 Sonnet, while keeping existing model IDs for backward compatibility.

Changes:

  • Prepends five newer Claude model entries to the hard-coded featuredModels list (making the first entry the “recommended” one).
  • Updates config help text to recommend Claude Sonnet 4.6 instead of Claude v3 Sonnet.
  • Updates the Model config component test to expect the new Claude Sonnet 4.6 entry.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
apps/bedrock-content-generator/src/configs/aws/featuredModels.ts Adds newer Claude models to the featured list and implicitly changes the “first model” used as the recommended/defaultModelId.
apps/bedrock-content-generator/src/components/config/model/Model.spec.tsx Updates mocked Bedrock model list and assertions to include the new top-of-list Claude model.
apps/bedrock-content-generator/src/components/config/configText.ts Updates UI help text to recommend the newer Claude model.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@mgoudy91 Mitch Goudy (mgoudy91) changed the title feat: add modern Claude models feat: add modern Claude models [] Mar 18, 2026
fi
source $BASH_ENV
run_allow_scripts:
Copy link
Contributor Author

@mgoudy91 Mitch Goudy (mgoudy91) Mar 18, 2026

Choose a reason for hiding this comment

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

see PR description for walkthrough of the changes to this file

…xisting

- Add Claude Sonnet 4.6, 4.5, 4; Claude 3.5 Haiku, 3 Haiku to featured list
- Keep existing models (v3 Sonnet, v2.1, Instant, Llama 2, Mixtral) for backward compatibility
- Set default model to Claude Sonnet 4.6
- Update config help text to suggest Claude Sonnet 4.6
- Update Model.spec.tsx to include new default in mock and assertions

Made-with: Cursor
@mgoudy91 Mitch Goudy (mgoudy91) force-pushed the feature/bedrock-modern-models branch from 14a52ba to 20f845d Compare March 18, 2026 15:47
Copy link
Contributor

@david-shibley-contentful david-shibley-contentful left a comment

Choose a reason for hiding this comment

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

LGTM

@mgoudy91 Mitch Goudy (mgoudy91) merged commit 0b55f21 into master Mar 18, 2026
14 checks passed
@mgoudy91 Mitch Goudy (mgoudy91) deleted the feature/bedrock-modern-models branch March 18, 2026 16:01
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.

3 participants