From 2d46f4d61a166cef02aa9c0a94b05bd764340c59 Mon Sep 17 00:00:00 2001 From: Bowen Dwelle Date: Fri, 23 Jan 2026 08:59:06 -0700 Subject: [PATCH] Update agents.mdx ### models w/ correct provider/model-id format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous version incorrectly stated "The model ID in your OpenCode config uses the format provider/model-id. For example, if you’re using OpenCode Zen, you would use opencode/gpt-5.1-codex for GPT 5.1 Codex." This commit corrects the provider/model-id format and examples. The provider indeed prefixes the model-id, but it's the full model-id, not just the part to the right of the slash, e.g. opencode/openai/gpt-5.1-codex openai/openai/gpt-5.1-codex --- packages/web/src/content/docs/agents.mdx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/web/src/content/docs/agents.mdx b/packages/web/src/content/docs/agents.mdx index ea1f779cd375..ac9d4d449571 100644 --- a/packages/web/src/content/docs/agents.mdx +++ b/packages/web/src/content/docs/agents.mdx @@ -325,14 +325,13 @@ If you don’t specify a model, primary agents use the [model globally configure { "agent": { "plan": { - "model": "anthropic/claude-haiku-4-20250514" + "model": "opencode/openai/gpt-5.1-codex" } } } ``` -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. - +The model ID in your OpenCode config uses the format `provider/model-id`. For example, if you're using [OpenCode Zen](/docs/zen) to connect to GPT 5.1 Codex, you would use `opencode/openai/gpt-5.1-codex` for GPT 5.1 Codex, whereas if you are connecting to that same model via OpenAI auth, you would use `openai/openai/gpt-5.1-codex`. --- ### Tools