Skip to content

Commit 41f2a9e

Browse files
committed
docs: add documentation for anomalyco#2833 anomalyco#2829
1 parent cc0d460 commit 41f2a9e

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

‎packages/web/src/content/docs/models.mdx‎

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,41 @@ You can globally configure a model's options through the config.
100100
}
101101
```
102102

103-
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.
103+
Here we're configuring global settings for two built-in models: `gpt-5` when accessed via the `openai` provider, and `claude-sonnet-4-20250514` when accessed via the `anthropic` provider.
104+
The built-in provider and model names can be found on [Models.dev](https://models.dev).
104105

105106
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).
106107

108+
You can also define custom models that extend built-in ones and can optionally use specific options by referring to their id:
109+
110+
```jsonc title="opencode.jsonc" {6-20}
111+
{
112+
"$schema": "https://opencode.ai/config.json",
113+
"provider": {
114+
"opencode": {
115+
"models": {
116+
"gpt-5-high": {
117+
"id": "gpt-5",
118+
"options": {
119+
"reasoningEffort": "high",
120+
"textVerbosity": "low",
121+
"reasoningSummary": "auto"
122+
}
123+
},
124+
"gpt-5-low": {
125+
"id": "gpt-5",
126+
"options": {
127+
"reasoningEffort": "low",
128+
"textVerbosity": "low",
129+
"reasoningSummary": "auto"
130+
}
131+
}
132+
}
133+
}
134+
}
135+
}
136+
```
137+
107138
---
108139

109140
## Loading models

0 commit comments

Comments
 (0)