Skip to main content

Module models

Module models 

Source
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§

CachedModel
One models.dev model.
ModelReasoningRow
models.dev’s reasoning and reasoning_options for one model, in its own shape.

Enums§

ReasoningOption

Constants§

DEFAULT_CATALOG_PROVIDERS
The providers a project reads when it sets no catalog_providers.

Functions§

auto_resolve_all
Every row an auto alias selects, best first: all match globs hit, no exclude glob hits, the provider (when set) matches by canonical key, -latest ids are skipped, newest release_date first (a row with none sorts last), then the shorter id, then alphabetical.
catalog_provider_canonical
models.dev provider key as catalog_providers and alias provider fields 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 by catalog_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