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