Skip to main content

parse_openrouter_catalog_models

Function parse_openrouter_catalog_models 

Source
pub fn parse_openrouter_catalog_models(
    body: &str,
) -> Result<Vec<CatalogModel>, Error>
Expand description

Parse an OpenRouter /models JSON body into CatalogModel entries. Pure function — no network I/O — safe to unit-test with fixtures.