Merge b4eafe9430228451d5d52516e41178dbf585d3f0 into 6b4c24c2e55b5b4013277bd799525086f6a0c40f

This commit is contained in:
Shion Eria 2026-03-21 04:45:11 +00:00 committed by GitHub
commit bdc1ac4548
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,6 +92,19 @@ Each `models[]` entry can be **provider** or **CLI**:
}
```
Provider entries reuse the standard model-provider auth flow. `tools.media`
model entries do **not** take an inline `apiKey`. Configure credentials through
one of these supported sources instead:
- an `auth-profiles.json` profile selected by `profile` / `preferredProfile`
- the provider's standard environment variable (for example `GOOGLE_API_KEY`,
`GROQ_API_KEY`, `OPENAI_API_KEY`)
- `models.providers.<provider>.apiKey` in config when it resolves to a usable
string value, including plaintext or `${ENV_VAR}` substitution
If none of those sources resolve for a provider entry, media understanding skips
that entry and falls back to the next configured model.
```json5
{
type: "cli",
@ -152,6 +165,10 @@ working option**:
- Image: OpenAI → Anthropic → Google → MiniMax
- Video: Google
Provider auto-detection uses the same auth sources listed above. A provider only
counts as available when OpenClaw can resolve its credential from auth
profiles, env, or `models.providers.<provider>.apiKey`.
To disable auto-detection, set:
```json5