Skip to content

Commit 6c40bfe

Browse files
authored
docs: clarify model ID format for OpenCode provider (anomalyco#5854)
1 parent 9caaae6 commit 6c40bfe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/web/src/content/docs/agents.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ If you don’t specify a model, primary agents use the [model globally configure
331331
}
332332
```
333333

334+
The model ID in your OpenCode config uses the format `provider/model-id`. For example, if you're using [OpenCode Zen](/docs/zen), you would use `opencode/gpt-5.1-codex` for GPT 5.1 Codex.
335+
334336
---
335337

336338
### Tools

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ OpenCode config.
6060
}
6161
```
6262

63-
Here the full ID is `provider_id/model_id`.
63+
Here the full ID is `provider_id/model_id`. For example, if you're using [OpenCode Zen](/docs/zen), you would use `opencode/gpt-5.1-codex` for GPT 5.1 Codex.
6464

6565
If you've configured a [custom provider](/docs/providers#custom), the `provider_id` is key from the `provider` part of your config, and the `model_id` is the key from `provider.models`.
6666

0 commit comments

Comments
 (0)