Skip to main content

validate_codex_model

Function validate_codex_model 

Source
pub fn validate_codex_model(model: Option<&str>) -> Result<(), AppError>
Expand description

Validates the requested model against CODEX_PRO_OAUTH_MODELS.

ยงErrors

Returns AppError::Validation listing the accepted models when the caller supplied a model outside the whitelist.