feat(opencode): add cache_point_ttl option for Bedrock provider#23108
Open
bainos wants to merge 7 commits intoanomalyco:devfrom
Open
feat(opencode): add cache_point_ttl option for Bedrock provider#23108bainos wants to merge 7 commits intoanomalyco:devfrom
bainos wants to merge 7 commits intoanomalyco:devfrom
Conversation
4f22515 to
74523dd
Compare
e7c8863 to
f2558a3
Compare
|
@bainos any ETA for this? |
f2558a3 to
2e086cb
Compare
…fter core package refactor
2e086cb to
b34b8cc
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.
Issue for this PR
Closes #23106
Type of change
What does this PR do?
Adds `cache_point_ttl` to Bedrock provider options in `opencode.json` (`5m` or `1h`).
When set, a `cachePoint` block with the configured TTL is injected after the system prompt. Cache token usage is mapped into the existing token tracking.
Ran sessions against Bedrock Sonnet 4.6 (global inference profile). Confirmed correct TTL value appears in `cacheDetails` of the Converse API response.
Checklist