Skip to main content

ralph_workflow/agents/providers/
models.rs

1//! Example Models
2//!
3//! Example model identifiers for each provider type.
4
5use super::types::OpenCodeProviderType;
6
7impl OpenCodeProviderType {
8    /// Get example models for this provider type.
9    pub const fn example_models(self) -> &'static [&'static str] {
10        match self {
11            Self::OpenCodeZen => &["opencode/glm-4.7-free", "opencode/claude-sonnet-4"],
12            Self::ZaiDirect => &["zai/glm-4.7", "zai/glm-4.5", "zhipuai/glm-4.7"],
13            Self::ZaiCodingPlan => &["zai/glm-4.7", "zai/glm-4.5"],
14            Self::Moonshot => &["moonshot/kimi-k2", "moonshot/moonshot-v1-128k"],
15            Self::MiniMax => &["minimax/abab6.5-chat", "minimax/abab5.5-chat"],
16            Self::Anthropic => &["anthropic/claude-sonnet-4", "anthropic/claude-opus-4"],
17            Self::OpenAI => &["openai/gpt-4o", "openai/gpt-4-turbo", "openai/o1"],
18            Self::Google => &["google/gemini-2.0-flash", "google/gemini-1.5-pro"],
19            Self::GoogleVertex => &[
20                "google-vertex/gemini-2.0-flash",
21                "google-vertex/gemini-1.5-pro",
22            ],
23            Self::AmazonBedrock => &[
24                "amazon-bedrock/anthropic.claude-3-5-sonnet",
25                "amazon-bedrock/meta.llama3-70b-instruct",
26            ],
27            Self::AzureOpenAI => &["azure-openai/gpt-4o", "azure-openai/gpt-4-turbo"],
28            Self::GithubCopilot => &[
29                "copilot/gpt-4o",
30                "copilot/claude-3.5-sonnet",
31                "copilot/gemini-2.0-flash",
32            ],
33            Self::Groq => &["groq/llama-3.3-70b-versatile", "groq/mixtral-8x7b"],
34            Self::Together => &[
35                "together/meta-llama/Llama-3-70b-chat-hf",
36                "together/mistralai/Mixtral-8x7B",
37            ],
38            Self::Fireworks => &["fireworks/accounts/fireworks/models/llama-v3p1-70b-instruct"],
39            Self::Cerebras => &["cerebras/llama3.3-70b"],
40            Self::SambaNova => &["sambanova/Meta-Llama-3.3-70B-Instruct"],
41            Self::DeepInfra => &[
42                "deep-infra/meta-llama/Llama-3.3-70B-Instruct",
43                "deep-infra/Qwen/Qwen2.5-Coder-32B",
44            ],
45            Self::OpenRouter => &[
46                "openrouter/anthropic/claude-3.5-sonnet",
47                "openrouter/openai/gpt-4o",
48            ],
49            Self::Cloudflare => &[
50                "cloudflare/@cf/meta/llama-3-8b-instruct",
51                "cloudflare/@cf/mistral/mistral-7b",
52            ],
53            Self::Vercel => &["vercel/gpt-4o", "vercel/claude-3.5-sonnet"],
54            Self::Helicone => &["helicone/gpt-4o"],
55            Self::ZenMux => &["zenmux/gpt-4o", "zenmux/claude-3.5-sonnet"],
56            Self::DeepSeek => &["deepseek/deepseek-chat", "deepseek/deepseek-coder"],
57            Self::Xai => &["xai/grok-2", "xai/grok-beta"],
58            Self::Mistral => &["mistral/mistral-large", "mistral/codestral"],
59            Self::Cohere => &["cohere/command-r-plus", "cohere/command-r"],
60            Self::Perplexity => &["perplexity/sonar-pro", "perplexity/sonar"],
61            Self::AI21 => &["ai21/jamba-1.5-large", "ai21/jamba-1.5-mini"],
62            Self::VeniceAI => &["venice-ai/llama-3-70b"],
63            Self::HuggingFace => &[
64                "huggingface/meta-llama/Llama-3.3-70B-Instruct",
65                "huggingface/Qwen/Qwen2.5-Coder-32B",
66            ],
67            Self::Replicate => &["replicate/meta/llama-3-70b-instruct"],
68            Self::Baseten => &["baseten/llama-3-70b"],
69            Self::Cortecs => &["cortecs/llama-3-70b"],
70            Self::Scaleway => &["scaleway/llama-3-70b"],
71            Self::OVHcloud => &["ovhcloud/llama-3-70b"],
72            Self::IONet => &["io-net/llama-3-70b"],
73            Self::Nebius => &["nebius/llama-3-70b"],
74            Self::SapAICore => &["sap-ai-core/gpt-4o", "sap-ai-core/claude-3.5-sonnet"],
75            Self::AzureCognitiveServices => &["azure-cognitive-services/gpt-4o"],
76            Self::Ollama => &["ollama/llama3", "ollama/codellama", "ollama/mistral"],
77            Self::LMStudio => &["lmstudio/local-model"],
78            Self::OllamaCloud => &["ollama-cloud/llama3", "ollama-cloud/codellama"],
79            Self::LlamaCpp => &["llama.cpp/local-model"],
80            Self::Custom => &[],
81        }
82    }
83}