feat: add modern Claude models []#10706
Merged
Mitch Goudy (mgoudy91) merged 4 commits intomasterfrom Mar 18, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
featuredModelslist (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.
apps/bedrock-content-generator/src/configs/aws/featuredModels.ts
Outdated
Show resolved
Hide resolved
apps/bedrock-content-generator/src/components/config/configText.ts
Outdated
Show resolved
Hide resolved
| fi | ||
| source $BASH_ENV | ||
| run_allow_scripts: |
Contributor
Author
There was a problem hiding this comment.
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
… package management
….json for LavaMoat integration
14a52ba to
20f845d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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 existingClaudeModeland sameanthropic_versionrequest format.Model.spec.tsxmock 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=truein the root.npmrc(Shai-Hulud supply-chain hardening), so normal install scripts don’t run. Contentful context herevite>esbuildand@originjs/vite-plugin-commonjs>esbuild(so their postinstall can run).npm ci/ bootstrap, we runnpm run allow-scriptsfor this app so those scripts run and the Linux binary is available.npm install, runnpm run allow-scriptsonce so the correct esbuild binary is installed for your OS.Testing steps
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.