Skip to content

fix: Claude w/bedrock custom inference profile - caching support - #9838

Merged
rekram1-node merged 2 commits into
anomalyco:devfrom
stevoland:stevo-mkkuolzptnvq
Jan 21, 2026
Merged

rekram1-node merged 2 commits into
anomalyco:devfrom
stevoland:stevo-mkkuolzptnvq

Conversation

@stevoland

Copy link
Copy Markdown
Contributor

What does this PR do?

Resolves: #9803

Fixes missing cachePoint when using claude with custom inference profile, eg:

"amazon-bedrock": {
  "options": {
    "profile": "xxx",
    "region": "yyy"
  },
  "models": {
    "claude-sonnet-4.5": {
      "id": "arn:aws:bedrock:yyy:zzz:application-inference-profile/nnn"
    }
  }
},

How did you verify your code works?

./packages/opencode/script/build.ts --single

with the above config and logged tokens:

tokens: {
    input: 339,
    output: 13,
    reasoning: 0,
    cache: {
      write: 0,
      read: 19050,
    },
  },

Added failing unit test then green with the change.

TY!

@rekram1-node
rekram1-node merged commit 0e1a8a1 into anomalyco:dev Jan 21, 2026
4 checks passed
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude w/ bedrock custom inference profile - no caching

2 participants