Expand description
The models.dev catalog row and the pure alias resolver over it.
Rows are the shape Mars snapshots and the shape Meridian Flow holds, so both resolve aliases and read a model’s reasoning the same way.
Structs§
- Cached
Model - One models.dev model.
- Model
Reasoning Row - models.dev’s
reasoningandreasoning_optionsfor one model, in its own shape.
Enums§
Constants§
- DEFAULT_
CATALOG_ PROVIDERS - The providers a project reads when it sets no
catalog_providers.
Functions§
- auto_
resolve_ all - Every row an
autoalias selects, best first: allmatchglobs hit, noexcludeglob hits, the provider (when set) matches by canonical key,-latestids are skipped, newestrelease_datefirst (a row with none sorts last), then the shorter id, then alphabetical. - catalog_
provider_ canonical - models.dev provider key as
catalog_providersand aliasproviderfields spell it, with the spellings models.dev has used for one provider folded together. - glob_
match *globs over a whole string; no other metacharacter.- infer_
provider_ from_ model_ id - The provider a model id’s prefix names, for ids no alias or row gives one for.
- normalize_
provider - The display name of a models.dev provider key.
- provider_
filter - Whether a provider key is one of the project’s
catalog_providers: the rule that narrows models.dev to the rows aliases resolve over.*allows every provider; a key compares bycatalog_provider_canonical. - provider_
key_ from_ display - The key of a row that only has a display name. Holds for every default catalog provider.
- sort_
best_ first