Models catalog #
The models extension supplies model metadata to the harness. Provider extensions can also supply model lists and metadata. Authentication and profile selection are described in model authentication.
Cache #
The models extension
stores the catalog as models.json in the Albedo home. Its default URL is
https://models.dev/api.json, and its default refresh interval is 24 hours. A
refresh runs in the background when the cache is missing or old. A failed fetch
keeps the previous cache. refreshHours set to zero disables that automatic
fetch. An explicit reload reports fetch errors.
The typed catalog projection decodes provider and model metadata and trims fetched catalogs to the fields lookup uses. The native cache owns file revisions, isolated parsing, the persisted version-2 index, and publication of the provider and model maps together. Legacy untrimmed files are rewritten on first parse while preserving their modification time. The catalog is external data, not a guarantee of a provider's current offerings.
Lookup #
catalog.select uses
the endpoint host to select a provider when possible. chatgpt.com selects the
OpenAI catalog identity. Without an attributed match, it uses the smallest known
context limit, reports an output limit only when known limits agree, and
intersects reported modalities and efforts. select_provider instead requires
the named provider.
When a model is missing, the catalogue lookup can infer low, medium, and high reasoning efforts from certain model names. That fallback does not supply catalog limits. A failed lookup otherwise returns no metadata.
Model lists #
model_lists exposes ids,
refetch, saved, and ready for provider-specific lists. The
native cache stores lists
separately from the general catalog and applies success and failure expiry
periods. Consumers must handle a missing or unavailable list. The
proxy uses profile and catalog information when it lists models.
OpenAI-compatible lists share
catalog.ids for sorted, unique IDs.
Providers retain eligibility, credential precedence, headers, timeouts, and HTTP
status policy. The ordinary HTTP client
preserves response headers for conditional catalog requests. Mixed-credential
catalog reads do not establish model-session affinity.
Codex reads codex-models.json from the correctly encoded home path. If that
file is absent, it checks the legacy path that treated UTF-8 bytes as Unicode
codepoints and validates the cache before copying its bytes to the canonical
path. An unreadable canonical file does not trigger the fallback. The
Codex catalog owns this
migration.
Related pages #
- All topics
- Change guidance
- Model authentication
- Compaction
- Image generation: driver selection and image model settings.