From 0e1a8a1839f647dca41eae1be66c451b54338c74 Mon Sep 17 00:00:00 2001 From: Stephen Collings Date: Wed, 21 Jan 2026 16:42:13 +0000 Subject: fix: Claude w/bedrock custom inference profile - caching support (#9838) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> --- packages/web/src/content/docs/providers.mdx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'packages/web/src') diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx index a5ae45815..8e1d0b4ed 100644 --- a/packages/web/src/content/docs/providers.mdx +++ b/packages/web/src/content/docs/providers.mdx @@ -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 -- cgit v1.2.3