summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src
diff options
context:
space:
mode:
authorStephen Collings <[email protected]>2026-01-21 16:42:13 +0000
committerGitHub <[email protected]>2026-01-21 10:42:13 -0600
commit0e1a8a1839f647dca41eae1be66c451b54338c74 (patch)
treea5bfad98f1576448cd4a8cc4ba5f3e193507159e /packages/web/src
parent178767af700682322389c3bc9332e4d9f524c1c1 (diff)
downloadopencode-0e1a8a1839f647dca41eae1be66c451b54338c74.tar.gz
opencode-0e1a8a1839f647dca41eae1be66c451b54338c74.zip
fix: Claude w/bedrock custom inference profile - caching support (#9838)
Co-authored-by: Aiden Cline <[email protected]>
Diffstat (limited to 'packages/web/src')
-rw-r--r--packages/web/src/content/docs/providers.mdx21
1 files changed, 21 insertions, 0 deletions
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