Provides lookups for supported AI models across various providers. Use to manage model configuration and validation in AI-integrated applications.
// Source: https://github.com/vinhnx/vtcode | License: Apache-2.0 | Copyright 2025 Vinh Nguyen
// Provided via justclaw.it.com; keep this notice with the code.
use super::models;
/// Get supported models for a provider
pub fn supported_for(provider: &str) -> Option<&'static [&'static str]> {
match provider {
"google" | "gemini" => Some(models::google::SUPPORTED_MODELS),
"openai" | "codex" => Some(models::openai::SUPPORTED_MODELS),
"anthropic" => Some(models::anthropic::SUPPORTED_MODELS),
"copilot" => Some(models::copilot::SUPPORTED_MODELS),
"mimo" => Some(models::mimo::SUPPORTED_MODELS),
"minimax" => Some(models::minimax::SUPPORTED_MODELS),
"deepseek" => Some(models::deepseek::SUPPORTED_MODELS),
"openrouter" => Some(model
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key