[PR #11664] fix: prompt caching for opus on bedrock #13884

Closed
opened 2026-02-16 18:18:42 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11664

State: closed
Merged: Yes


fixes #11662

basically just including the anthropic cache stuff on aws bedrock as well

Evidence

Before fix (read ~11k token file, then follow-up question):

Turn Input Cache Read Cache Write
1 ~11k ~13k ~11k
2 ~11k ~13k 0

After fix:

Turn Input Cache Read Cache Write
1 3 13,640 11,026
2 0 24,821 316
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11664 **State:** closed **Merged:** Yes --- fixes #11662 basically just including the anthropic cache stuff on aws bedrock as well Evidence Before fix (read ~11k token file, then follow-up question): | Turn | Input | Cache Read | Cache Write | |------|-------|------------|-------------| | 1 | ~11k | ~13k | ~11k | | 2 | ~11k | ~13k | 0 | After fix: | Turn | Input | Cache Read | Cache Write | |------|-------|------------|-------------| | 1 | 3 | 13,640 | 11,026 | | 2 | 0 | 24,821 | 316 |
yindo added the pull-request label 2026-02-16 18:18:42 -05:00
yindo closed this issue 2026-02-16 18:18:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13884