mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:20:43 +00:00
fix: restrict static model catalogs to bundled providers
This commit is contained in:
@@ -241,10 +241,11 @@ API key auth, and dynamic model resolution.
|
||||
|
||||
`buildProvider` is the live catalog path used when OpenClaw can resolve real
|
||||
provider auth. It may perform provider-specific discovery. Use
|
||||
`buildStaticProvider` only for bundled/offline rows that are safe to show in
|
||||
display-only surfaces such as `models list --all` before auth is configured;
|
||||
it must not require credentials or make network requests. Static catalog
|
||||
hooks run with an empty config, empty env, and no agent/workspace paths.
|
||||
`buildStaticProvider` only for offline rows that are safe to show before auth
|
||||
is configured; it must not require credentials or make network requests.
|
||||
OpenClaw's `models list --all` display currently executes static catalogs
|
||||
only for bundled provider plugins, with an empty config, empty env, and no
|
||||
agent/workspace paths.
|
||||
|
||||
If your auth flow also needs to patch `models.providers.*`, aliases, and
|
||||
the agent default model during onboarding, use the preset helpers from
|
||||
|
||||
Reference in New Issue
Block a user