summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src
diff options
context:
space:
mode:
authorDominik Engelhardt <[email protected]>2025-08-02 16:29:03 +0200
committerGitHub <[email protected]>2025-08-02 09:29:03 -0500
commit42a5fcead42c01c932d00d59647844e29c137ac0 (patch)
treebb27f84b9a591c9cd18e7fa410af43dcdf50dd27 /packages/web/src
parent8ad83f71a9f2e02e705301a72c3d0c39c3d9055d (diff)
downloadopencode-42a5fcead42c01c932d00d59647844e29c137ac0.tar.gz
opencode-42a5fcead42c01c932d00d59647844e29c137ac0.zip
Choose model according to the docs (#1536)
Diffstat (limited to 'packages/web/src')
-rw-r--r--packages/web/src/content/docs/docs/models.mdx10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/web/src/content/docs/docs/models.mdx b/packages/web/src/content/docs/docs/models.mdx
index 591625f8f..5308921a3 100644
--- a/packages/web/src/content/docs/docs/models.mdx
+++ b/packages/web/src/content/docs/docs/models.mdx
@@ -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.