GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — feat(bedrock): add prompt caching support for custom ARNs and inferen… by marcelloceschia · Pull Request #16504 · anomalyco/opencode Conversation
|
|
The following comment was made by an LLM, it may be inaccurate: Found 2 potentially related PRs (excluding the current PR #16504):
Check these PRs to see if they've already addressed Bedrock prompt caching or if there's overlap in the implementation approach. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…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 #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
- Add 'caching' field to Model schema with support for:
- Boolean (true/false to enable/disable)
- Object with 'format' and 'positions' options
- No auto-detection - caching is opt-in via model config
- Cache formats: anthropic, openrouter, bedrock, openaiCompatible
- Configurable cache positions: system, first, last
Example configuration:
```json
{
"provider": {
"kiro": {
"models": {
"claude-sonnet-4-5": {
"caching": true
}
}
}
}
}
```
This enables prompt caching for models through kiro-gateway and
other OpenAI-compatible providers.
|
@marcelloceschia seems like there is a fair few tests failing that assert prompt caching |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@bbartels yes, I have seen that but was a bit busy the last days. I will fix it until Friday. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…caching support - Re-add copilot to providerOptions (was accidentally removed) - Add auto-detection for Bedrock Claude/Nova models (unless options.caching=false) - Support explicit options.caching=true for custom ARNs - Respect options.caching=false to disable caching on Anthropic models - Fixes test failures from PR anomalyco#16504
Please have a look again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@rekram1-node Thanks for the feedback.
yes, and no reaction for the team. Its difficult to keep effort on something where you don't get any feedback, only close notification |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.