Skip to content

Commit cbda3b2

Browse files
committed
docs: clarify configured media fallback selection
1 parent 97cc3e2 commit cbda3b2

3 files changed

Lines changed: 21 additions & 19 deletions

File tree

‎docs/tools/image-generation.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,13 @@ translation.
229229

230230
### Provider selection order
231231

232-
OpenClaw tries providers in this order:
232+
For `image_generate`, OpenClaw tries providers in this order:
233233

234-
1. **`model` parameter** from the tool call (if the agent specifies one).
234+
1. **`model` parameter** from the tool call. When set, only this model is tried.
235235
2. **`agents.defaults.mediaModels.image.primary`** from config.
236236
3. **`agents.defaults.mediaModels.image.fallbacks`** in order.
237-
4. **Auto-detection** - auth-backed provider defaults only:
237+
4. **Auto-detection** - only when neither a primary nor fallback model is
238+
configured, using configured provider defaults:
238239
- current default provider first;
239240
- remaining registered image-generation providers in provider-id order.
240241

@@ -247,10 +248,10 @@ from each attempt.
247248
A per-call `model` override tries only that provider/model and does
248249
not continue to configured primary/fallback or auto-detected providers.
249250
</Accordion>
250-
<Accordion title="Auto-detection is auth-aware">
251-
A provider default only enters the candidate list when OpenClaw can
252-
actually authenticate that provider. Automatic fallback across authenticated
253-
providers is always enabled; a per-call `model` remains authoritative.
251+
<Accordion title="Auto-detection uses configured providers">
252+
Auto-detection considers provider defaults whose readiness or auth checks pass.
253+
Explicit image model configuration limits fallback to the configured list;
254+
OpenClaw does not append auto-detected providers.
254255
</Accordion>
255256
<Accordion title="Timeouts">
256257
Set `agents.defaults.mediaModels.image.timeoutMs` for slow image

‎docs/tools/music-generation.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,13 @@ openclaw tasks cancel <taskId>
253253

254254
### Provider selection order
255255

256-
OpenClaw tries providers in this order:
256+
For `music_generate`, OpenClaw tries providers in this order:
257257

258-
1. `model` parameter from the tool call (if the agent specifies one).
258+
1. `model` parameter from the tool call. When set, only this model is tried.
259259
2. `agents.defaults.mediaModels.music.primary` from config.
260260
3. `agents.defaults.mediaModels.music.fallbacks` in order.
261-
4. Auto-detection using auth-backed provider defaults only:
261+
4. When neither a primary nor fallback model is configured, auto-detection using
262+
configured provider defaults:
262263
- current default text-model provider first, if it also offers music
263264
generation;
264265
- remaining registered music-generation providers, alphabetically by
@@ -267,8 +268,8 @@ OpenClaw tries providers in this order:
267268
If a provider fails, the next candidate is tried automatically. If all
268269
fail, the error includes details from each attempt.
269270

270-
Automatic fallback across authenticated providers is always enabled. A per-call
271-
`model` remains authoritative.
271+
Explicit music model configuration limits fallback to the configured list;
272+
OpenClaw does not append auto-detected providers.
272273

273274
## Provider notes
274275

‎docs/tools/video-generation.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,20 +286,20 @@ aggregated error includes the skip reason for each.
286286

287287
## Model selection
288288

289-
OpenClaw resolves the model in this order:
289+
For `video_generate`, OpenClaw resolves the model in this order:
290290

291-
1. **`model` tool parameter** - if the agent specifies one in the call.
291+
1. **`model` tool parameter** - when set, only this model is tried.
292292
2. **`agents.defaults.mediaModels.video.primary`** from config.
293293
3. **`agents.defaults.mediaModels.video.fallbacks`** in order.
294-
4. **Auto-detection** - providers that have valid auth, starting with the
295-
current default provider, then remaining providers in alphabetical
296-
order.
294+
4. **Auto-detection** - only when neither a primary nor fallback model is
295+
configured, using configured provider defaults. The current default provider
296+
comes first, then remaining providers in alphabetical order.
297297

298298
If a provider fails, the next candidate is tried automatically. If all
299299
candidates fail, the error includes details from each attempt.
300300

301-
Automatic fallback across authenticated providers is always enabled. A per-call
302-
`model` remains authoritative.
301+
Explicit video model configuration limits fallback to the configured list;
302+
OpenClaw does not append auto-detected providers.
303303

304304
```json5
305305
{

0 commit comments

Comments
 (0)