Skip to main content

Module model_reference

Module model_reference 

Source
Expand description

Factual model reference database (#3205, #2300).

A browsable, read-only projection of the compiled catalog into per-offering “fact cards”: the model id as-is, the serving provider and its kind, the context window, the price, and the modality (text vs multimodal). It exists to answer “what are this model’s stated attributes?”, nothing more.

This layer is labels only. It performs no selection, routing, tiering, or ranking — it never decides which model to use, and it carries no strong/balanced/fast or role concept. It is a superset-free view over crate::catalog::CatalogOffering rows.

Honesty rule (shared with #2608 / #3085): an attribute the catalog layer did not state is reported as unknown, never guessed. A local/custom endpoint with no catalog facts yields Unknown modality, None context window, and an unknown price — its model id is still preserved verbatim. Nothing here is inferred from a model-id prefix.

Structs§

ModelReferenceCard
A factual reference card for one provider offering.
ModelReferenceDatabase
A browsable, read-only factual reference database of model offerings.

Enums§

Modality
Coarse, factual input/output modality label for a model.