Skip to main content

parse_codex_catalog_models

Function parse_codex_catalog_models 

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

Parse the ChatGPT backend-api models response into normalized catalog rows.

Response shape: { "models": [ { "slug", "display_name", "visibility", "supported_in_api", "context_window", "supported_reasoning_levels": [{"effort": "..."}], "default_reasoning_level": "...", ... }, ... ] }.