From 42a5fcead42c01c932d00d59647844e29c137ac0 Mon Sep 17 00:00:00 2001 From: Dominik Engelhardt Date: Sat, 2 Aug 2025 16:29:03 +0200 Subject: Choose model according to the docs (#1536) --- packages/web/src/content/docs/docs/models.mdx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'packages/web/src/content/docs') 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. -- cgit v1.2.3