Expand description
Compile-time model catalog hydrated from models.dev + liter-llm provider registry.
The catalog is embedded at build time by build.rs as a JSON blob via include_str!.
It provides typed access to provider routing data, model capabilities, pricing,
and context limits — used by the [ProviderRegistry], model router, and admin UI.
Structs§
- Capability
Filter - Filter for querying models by capability requirements.
- Modalities
- Input/output modalities.
- Model
Capabilities - Model capability flags.
- Model
Catalog - Top-level catalog containing all known providers and their models.
- Model
Cost - Pricing per 1M tokens (in USD).
- Model
Info - Model information from the catalog.
- Model
Limits - Context and output token limits.
- Provider
Auth - Provider authentication configuration.
- Provider
Info - Provider information from the merged catalog.
Functions§
- estimate_
cost - Estimate USD cost for a
provider/modelrequest from the global pricing catalog. ReturnsNonewhen the model id is malformed, the model is absent from the catalog, or the model has no pricing — callers treatNoneas “cost unknown” (no error).