summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-08-27 09:41:51 -0500
committerGitHub <[email protected]>2025-08-27 09:41:51 -0500
commit5c17ee52c5ad82dd759a777eb3ab613a00d27ddb (patch)
tree5d8ae9c6909332e3ffcba8f4d9be14b587a96194 /packages/web/src
parent3606775b79cac821bf01bd7d9dcc32a4ed821cb5 (diff)
downloadopencode-5c17ee52c5ad82dd759a777eb3ab613a00d27ddb.tar.gz
opencode-5c17ee52c5ad82dd759a777eb3ab613a00d27ddb.zip
docs: document anthropic thinking budgets (#2243)
Diffstat (limited to 'packages/web/src')
-rw-r--r--packages/web/src/content/docs/docs/models.mdx28
1 files changed, 20 insertions, 8 deletions
diff --git a/packages/web/src/content/docs/docs/models.mdx b/packages/web/src/content/docs/docs/models.mdx
index e06ab0eab..efebc5cb4 100644
--- a/packages/web/src/content/docs/docs/models.mdx
+++ b/packages/web/src/content/docs/docs/models.mdx
@@ -68,7 +68,7 @@ If you've configured a [custom provider](/docs/providers#custom), the `provider_
You can globally configure a model's options through the config.
-```jsonc title="opencode.jsonc" {7-11}
+```jsonc title="opencode.jsonc" {7-12,19-24}
{
"$schema": "https://opencode.ai/config.json",
"provider": {
@@ -79,16 +79,28 @@ You can globally configure a model's options through the config.
"reasoningEffort": "high",
"textVerbosity": "low",
"reasoningSummary": "auto",
- "include": ["reasoning.encrypted_content"]
- }
- }
- }
- }
- }
+ "include": ["reasoning.encrypted_content"],
+ },
+ },
+ },
+ },
+ "anthropic": {
+ "models": {
+ "claude-sonnet-4-20250514": {
+ "options": {
+ "thinking": {
+ "type": "enabled",
+ "budgetTokens": 16000,
+ },
+ },
+ },
+ },
+ },
+ },
}
```
-Here we are setting global options for the `gpt-5` model when used through the `openai` provider.
+Here we're configuring global settings for two models: `gpt-5` when accessed via the `openai` provider, and `claude-sonnet-4-20250514` when accessed via the `anthropic` provider.
You can also configure these options for any agents that you are using. The agent config overrides any global options here. [Learn more](/docs/agents/#additional).