Skip to main content

validate_codex_level

Function validate_codex_level 

Source
pub fn validate_codex_level(
    model_id: &str,
    level: ReasoningLevel,
    catalog_model: Option<&CatalogModel>,
) -> Result<(), String>
Expand description

Validate that the given level is supported by the Codex model identified by model_id. Uses the provided catalog when available, else falls back to the static table.

Returns Ok(()) if supported, Err(message) if not. Always fails for providers without authoritative Codex metadata.