Expand description
ultron update --models (refreshModelCatalogs of package-manager-cli.ts): every provider that refreshes its
catalog and has a credential refreshes it from the network, as ModelRuntime.refresh({ allowNetwork: true, force: true }) does: built-in providers revalidate their pi.dev catalog, Radius providers (the built-in one and
models.json "oauth": "radius" ones) load <gateway>/v1/config with their key (an expired OAuth token is
refreshed first). Results land in models-store.json, which every later start restores.
Evidence: crates/ai/fixtures/generate-model-refresh.mjs; tests/model_refresh.rs replays it.
Constants§
- REFRESH_
TIMED_ OUT refresh_catalogs’ error when its whole budget ran out (result.abortedafter the timer in TS).
Functions§
- refresh_
catalogs - The model runtime’s refresh:
refresh_catalogs_frompi.dev, or nothing when offline (PI_OFFLINE). - refresh_
catalogs_ from refresh_model_catalogs’ per-provider failures, in provider order;Errwhen the whole refresh timed out. Withoutforce, a pi.dev catalog checked within the last four hours is not asked again (a login’s refresh).- refresh_
model_ catalogs - Refresh every provider’s stored catalog.
Erris the messageultron update --modelsprints afterError:.