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

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
Stephen Collings
2026-01-21 16:42:13 +00:00
committed by GitHub
parent 178767af70
commit 0e1a8a1839
3 changed files with 58 additions and 0 deletions

View File

@@ -229,6 +229,27 @@ To use Amazon Bedrock with OpenCode:
/models
```
:::note
For custom inference profiles, use the model and provider name in the key and set the `id` property to the arn. This ensures correct caching:
```json title="opencode.json"
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"amazon-bedrock": {
// ...
"models": {
"anthropic-claude-sonnet-4.5": {
"id": "arn:aws:bedrock:us-east-1:xxx:application-inference-profile/yyy"
}
}
}
}
}
```
:::
---
### Anthropic