vtcode_config/constants/models/google.rs
1/// Default model - using stable version for production reliability
2pub const DEFAULT_MODEL: &str = "gemini-3.7-flash";
3
4pub const SUPPORTED_MODELS: &[&str] = &[
5 "gemini-4-neon", // Gemini 4 Neon - frontier intelligence with fast end-to-end task completion for complex software engineering, knowledge work, and science (unified 1M window, 64k sync output, low/medium/high/xhigh)
6 "gemini-4-hydrogen", // Gemini 4 Hydrogen - fast and efficient for everyday coding and agentic workflows (unified 1M window, 64k sync output, low/medium/high/xhigh)
7 "gemini-4-carbon", // Gemini 4 Carbon - strongest reasoning model for sustained agentic coding, multimodal knowledge work, scientific reasoning, cybersecurity defense (unified 1M window, 64k sync output, low/medium/high)
8 "gemini-4-argon", // Gemini 4 Argon - flagship for hardest problems (unified 1M window, 64k sync output, low/medium/high)
9 "gemini-3.6-flash", // Gemini 3.6 Flash - flash model with improved capabilities
10 "gemini-3.7-flash", // Gemini 3.7 Flash - flash model with 1M context and tunable thinking
11 "gemini-3.8-flash", // Gemini 3.8 Flash - most intelligent Flash for long-horizon SWE/agents (1M, 64k output, low/medium/high)
12 "gemini-3-flash-preview", // Fast version of Gemini 3 Pro with 3-level thinking
13 "gemini-3-pro-image-preview", // Image generation model with 4K resolution
14];
15
16/// Models that support thinking/reasoning capability with configurable thinking_level
17/// Based on: <https://ai.google.dev/gemini-api/docs/gemini-3>
18/// Gemini 3 Pro: supports low, high
19/// Gemini 3 Flash Preview: supports minimal, low, medium, high
20/// Gemini 3.7/3.8 Flash: supports low, medium (default), high — `minimal` not supported on 3.8 and will error
21pub const REASONING_MODELS: &[&str] = &[
22 "gemini-4-neon",
23 "gemini-4-hydrogen",
24 "gemini-4-carbon",
25 "gemini-4-argon",
26 "gemini-3.6-flash",
27 "gemini-3.7-flash",
28 "gemini-3.8-flash",
29 "gemini-3-flash-preview",
30];
31
32/// Models that support Gemini 3 extended thinking levels (minimal, medium)
33/// Only `gemini-3-flash-preview` supports `minimal`; stable 3.7/3.8 Flash support low/medium/high with medium as default
34pub const EXTENDED_THINKING_MODELS: &[&str] = &["gemini-3-flash-preview"];
35
36/// Models that support the `xhigh` thinking level (Gemini 4 Hydrogen and later).
37/// Hydrogen and Neon default to `high` and add `xhigh` for hard multi-step problems.
38pub const XHIGH_THINKING_MODELS: &[&str] = &["gemini-4-neon", "gemini-4-hydrogen"];
39
40/// Models supporting image generation
41pub const IMAGE_GENERATION_MODELS: &[&str] = &["gemini-3-pro-image-preview"];
42
43/// Models that support context caching
44/// Context caching reduces costs for repeated API calls with similar contexts
45/// Reference: <https://ai.google.dev/gemini-api/docs/caching>
46/// Gemini 4 Neon, Hydrogen, Argon, and Carbon support implicit caching only —
47/// explicit `cachedContents` is not supported and requests referencing it fail;
48/// prefer Implicit mode.
49pub const CACHING_MODELS: &[&str] = &[
50 "gemini-4-neon",
51 "gemini-4-hydrogen",
52 "gemini-4-carbon",
53 "gemini-4-argon",
54 "gemini-3.6-flash",
55 "gemini-3.7-flash",
56 "gemini-3.8-flash",
57 "gemini-3-flash-preview",
58];
59
60/// Models that reject explicit `cachedContents` entirely and support implicit
61/// caching only. The provider must skip its explicit-cache lifecycle for these
62/// models even when `[prompt_cache] mode = "explicit"` is configured —
63/// creation requests fail and references in generateContent bodies error.
64/// Reference: <https://ai.google.dev/gemini-api/docs/models/gemini-4-argon>,
65/// <https://ai.google.dev/gemini-api/docs/models/gemini-4-carbon>,
66/// <https://ai.google.dev/gemini-api/docs/models/gemini-4-hydrogen>
67pub const IMPLICIT_CACHING_ONLY_MODELS: &[&str] = &[
68 "gemini-4-neon",
69 "gemini-4-hydrogen",
70 "gemini-4-carbon",
71 "gemini-4-argon",
72];
73
74/// Models that support code execution (Python)
75/// Code execution allows models to write and execute Python code
76/// Reference: <https://ai.google.dev/gemini-api/docs/code-execution>
77pub const CODE_EXECUTION_MODELS: &[&str] = &[
78 "gemini-4-neon",
79 "gemini-4-hydrogen",
80 "gemini-4-carbon",
81 "gemini-4-argon",
82 "gemini-3.6-flash",
83 "gemini-3.7-flash",
84 "gemini-3.8-flash",
85 "gemini-3-flash-preview",
86];
87
88// Convenience constants for commonly used models
89pub const GEMINI_4_NEON: &str = "gemini-4-neon";
90pub const GEMINI_4_HYDROGEN: &str = "gemini-4-hydrogen";
91pub const GEMINI_4_CARBON: &str = "gemini-4-carbon";
92pub const GEMINI_4_ARGON: &str = "gemini-4-argon";
93pub const GEMINI_3_6_FLASH: &str = "gemini-3.6-flash";
94pub const GEMINI_3_7_FLASH: &str = "gemini-3.7-flash";
95pub const GEMINI_3_8_FLASH: &str = "gemini-3.8-flash";
96pub const GEMINI_3_FLASH_PREVIEW: &str = "gemini-3-flash-preview";
97pub const GEMINI_3_PRO_IMAGE_PREVIEW: &str = "gemini-3-pro-image-preview";