Skip to content

Conversation

@stevoland
Copy link
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
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