Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d7d061d36e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "3-5-haiku-20241022-v1:0" | ||
| | "3-7-sonnet-20250219-v1:0" |
There was a problem hiding this comment.
Add Claude 3.5 Sonnet v2 to the default cache allowlist
When a Bedrock request uses anthropic.claude-3-5-sonnet-20241022-v2:0, the extracted ID is 3-5-sonnet-20241022-v2:0, which this list does not recognize. With BEDROCK_ENABLE_CACHING unset, caching therefore remains disabled for this model even though it supports Bedrock prompt caching, so users must still opt in manually. Add the v2 ID to the default allowlist.
Useful? React with 👍 / 👎.
Fixes #13955
Summary
Leaving
BEDROCK_ENABLE_CACHINGunset now adds cache checkpoints to Bedrock Converse requests for Claude models with documented support. Model IDs from cross-region profiles and foundation-model ARNs use the same lookup. Unrecognized Claude models remain opt-in, which avoids sending a checkpoint to a model that could reject the request.An explicit
falsedisables caching. An explicittruekeeps the existing Claude opt-in, and the per-requestdisable_prompt_cacheflag still takes precedence. The configuration wizard leaves the setting unset when skipped so it can use the per-model default.Testing
Ran
cargo test -p goose --features aws-providers,rustls-tls --lib bedrock. All 88 tests passed locally without live AWS calls. The new regression test covers the default Bedrock model, a global inference profile, an unknown Claude model, a non-Claude model, explicit configuration and the per-request override. The provider metadata test also checks the configuration wizard default.Related issues
The maintainer's scope and Ready decision specify enabling the supported models by default while retaining the opt-out.