Skip to main content

validate_claude_model

Function validate_claude_model 

Source
pub fn validate_claude_model(model: &str) -> Result<(), String>
Expand description

Validates that a Claude Code model name is a slash-free served alias.

ยงErrors

Returns an error when the model name contains /, which Claude Code does not accept for custom model names.