feat(bedrock): add prompt caching support for custom ARNs and inference profiles#1
Open
marcelloceschia wants to merge 144 commits intodevfrom
Open
feat(bedrock): add prompt caching support for custom ARNs and inference profiles#1marcelloceschia wants to merge 144 commits intodevfrom
marcelloceschia wants to merge 144 commits intodevfrom
Conversation
…ce profiles - Enable prompt caching for Bedrock models that support it (Claude, Nova) - Add 'caching' option for custom ARNs/inference profiles without claude in name - Disable caching for Llama, Mistral, Cohere models (not supported) - Add comprehensive tests for all caching scenarios Fixes #1: Prompt cache not supported for custom ARN models Fixes anomalyco#2: 1M context window not configurable Users can now configure custom ARNs like: ```json { "provider": { "amazon-bedrock": { "models": { "arn:aws:bedrock:...:application-inference-profile/xxx": { "options": { "caching": true }, "limit": { "context": 1000000, "output": 32000 } } } } } } ```
2ed846f to
e349074
Compare
Allows users to skip automatic database migrations by setting the OPENCODE_SKIP_MIGRATIONS environment variable. Useful for testing scenarios or when manually managing database state.
…w panel messaging for projects without version control
… counters using tabular numerals
…by long side content
The test now validates that the database file is named according to the current installation channel (latest/beta get 'opencode.db', others get sanitized names). This ensures users' data is stored in the correct location based on their update channel.
Auto-accept now lives in the footer dock beside the thinking control so it stays easy to find without crowding the text box. The Add file button moves to the bottom-left of the editor and the input gets a bit more bottom padding so the control row doesn’t overlap what you’re typing.
Restore the previous prompt control layout after the dock/position changes made the composer feel less familiar. This brings auto-accept back to its prior spot and returns Add file to the previous placement.
Auto-accept now lives in the footer dock beside the thinking control so it stays easy to find without crowding the text box. The Add file button moves to the bottom-left of the editor and the input gets a bit more bottom padding so the control row doesn’t overlap what you’re typing.
People change models and thinking settings while composing, so keeping those controls next to the Add file button avoids hunting in the footer and reduces context switching mid-message.
Gives typed text more breathing room above the Add file/model/thinking row so the controls don’t visually crowd what you’re writing.
Lets people explicitly choose between normal permission prompts and auto-accept while composing, without relying on an ambiguous icon state.
Select triggers in the composer now use the normal text color so model/thinking/permissions controls read consistently with the rest of the input UI.
… identify the app when starting a fresh session
… auto-accept-permissions
… composer stays simple
…v so the composer stays simple" This reverts commit ae25c1e.
This reverts commit 207ebf4.
This reverts commit 12d862d.
This reverts commit 9813537.
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
Co-authored-by: Frank <frank@anoma.ly>
…yco#16922) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
…d of skill invocations. (anomalyco#17053)
…lyco#16974) Co-authored-by: wangxinxin <xinxin.wang@pharmbrain.com>
…ing for the process to exit (anomalyco#16998)
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.
Summary
Fixes
Usage
Users can now configure custom ARNs like:
{ "provider": { "amazon-bedrock": { "models": { "arn:aws:bedrock:...:application-inference-profile/xxx": { "options": { "caching": true }, "limit": { "context": 1000000, "output": 32000 } } } } } }Test Plan
options.caching→ Configurable