src/model_catalogs.rs

moltis · crates/providers/src/model_catalogs.rs · rust · MIT
ai

! Static model catalogs and OpenAI-compatible provider definitions.

// Source: https://github.com/moltis-org/moltis | License: MIT | Copyright 2025 Fabien Penso
// Provided via justclaw.it.com; keep this notice with the code.
//! Static model catalogs and OpenAI-compatible provider definitions.

use crate::openai::{
    CacheControlPolicy, OpenAiProviderCapabilities, ProbeFallbackPolicy, ProbeOutputCapPolicy,
    RateLimitPolicy, ReasoningEffortPolicy, SystemMessageRewriteStrategy,
};

/// Known Anthropic Claude models (model_id, display_name).
/// Current models listed first, then legacy models.
pub(crate) const ANTHROPIC_MODELS: &[(&str, &str)] = &[
    // Anthropic currently documents Claude 4.6 using alias IDs rather than
    // dated snapshot IDs. Register the documented aliases instead of
    // inventing snapshot suffixes that the API rejects.
    (

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key