mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
Choose model according to the docs (#1536)
This commit is contained in:
committed by
GitHub
parent
8ad83f71a9
commit
42a5fcead4
@@ -66,9 +66,11 @@ If you've configured a [custom provider](/docs/providers#custom), the `provider_
|
||||
|
||||
## Loading models
|
||||
|
||||
When opencode starts up, it checks for the following:
|
||||
When opencode starts up, it checks for models in the following priority order:
|
||||
|
||||
1. The model list in the opencode config.
|
||||
1. The `--model` or `-m` command line flag. The format is the same as in the config file: `provider_id/model_id`.
|
||||
|
||||
2. The model list in the opencode config.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
@@ -79,6 +81,6 @@ When opencode starts up, it checks for the following:
|
||||
|
||||
The format here is `provider/model`.
|
||||
|
||||
2. The last used model.
|
||||
3. The last used model.
|
||||
|
||||
3. The first model using an internal priority.
|
||||
4. The first model using an internal priority.
|
||||
|
||||
Reference in New Issue
Block a user