docs: clarify model ID format for OpenCode provider (#5854)

This commit is contained in:
Ryan Vogel 2025-12-20 14:51:13 -05:00 committed by GitHub
parent 9caaae6a18
commit 6c40bfe043
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -331,6 +331,8 @@ If you dont specify a model, primary agents use the [model globally configure
}
```
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.
---
### Tools

View file

@ -60,7 +60,7 @@ OpenCode config.
}
```
Here the full ID is `provider_id/model_id`.
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.
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`.