Skip to content

Commit d6e499d

Browse files
docs: Update "model" inheritance for agents (sst#4894)
Co-authored-by: Aiden Cline <[email protected]>
1 parent aec1497 commit d6e499d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/web/src/content/docs/agents.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,12 @@ This path is relative to where the config file is located. So this works for bot
315315

316316
### Model
317317

318-
Use the `model` config to override the default model for this agent. Useful for using different models optimized for different tasks. For example, a faster model for planning, a more capable model for implementation.
318+
Use the `model` config to override the model for this agent. Useful for using different models optimized for different tasks. For example, a faster model for planning, a more capable model for implementation.
319+
320+
:::tip
321+
If you don’t specify a model, primary agents use the [model globally configured](/docs/config#models) while subagents will use the model of the primary agent that invoked the subagent.
322+
:::
323+
319324

320325
```json title="opencode.json"
321326
{

0 commit comments

Comments
 (0)