format_anthropic_model_name

Function format_anthropic_model_name 

Source
pub fn format_anthropic_model_name(id: &str) -> String
Expand description

Format an Anthropic model ID to a human-readable name.

Preserves the full version identifier (including date suffixes) so that users can distinguish between model snapshots.

§Examples

  • claude-sonnet-4-20250514Claude Sonnet 4 (20250514)
  • claude-opus-4-20250514Claude Opus 4 (20250514)
  • claude-3-7-sonnet-20250219Claude 3.7 Sonnet (20250219)
  • claude-3-5-sonnet-20241022Claude 3.5 Sonnet (20241022)
  • claude-3-5-sonnet-latestClaude 3.5 Sonnet (latest)
  • claude-3-opus-20240229Claude 3 Opus (20240229)