Skip to main content

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-3.6-flash",           // Gemini 3.6 Flash - flash model with improved capabilities
6    "gemini-3.7-flash",           // Gemini 3.7 Flash - flash model with 1M context and tunable thinking
7    "gemini-3.8-flash", // Gemini 3.8 Flash - most intelligent Flash for long-horizon SWE/agents (1M, 64k output, low/medium/high)
8    "gemini-3-flash-preview", // Fast version of Gemini 3 Pro with 3-level thinking
9    "gemini-3-pro-image-preview", // Image generation model with 4K resolution
10];
11
12/// Models that support thinking/reasoning capability with configurable thinking_level
13/// Based on: <https://ai.google.dev/gemini-api/docs/gemini-3>
14/// Gemini 3 Pro: supports low, high
15/// Gemini 3 Flash Preview: supports minimal, low, medium, high
16/// Gemini 3.7/3.8 Flash: supports low, medium (default), high — `minimal` not supported on 3.8 and will error
17pub const REASONING_MODELS: &[&str] = &[
18    "gemini-3.6-flash",
19    "gemini-3.7-flash",
20    "gemini-3.8-flash",
21    "gemini-3-flash-preview",
22];
23
24/// Models that support Gemini 3 extended thinking levels (minimal, medium)
25/// Only `gemini-3-flash-preview` supports `minimal`; stable 3.7/3.8 Flash support low/medium/high with medium as default
26pub const EXTENDED_THINKING_MODELS: &[&str] = &["gemini-3-flash-preview"];
27
28/// Models supporting image generation
29pub const IMAGE_GENERATION_MODELS: &[&str] = &["gemini-3-pro-image-preview"];
30
31/// Models that support context caching (min 2048 tokens required)
32/// Context caching reduces costs for repeated API calls with similar contexts
33/// Reference: <https://ai.google.dev/gemini-api/docs/caching>
34pub const CACHING_MODELS: &[&str] = &[
35    "gemini-3.6-flash",
36    "gemini-3.7-flash",
37    "gemini-3.8-flash",
38    "gemini-3-flash-preview",
39];
40
41/// Models that support code execution (Python)
42/// Code execution allows models to write and execute Python code
43/// Reference: <https://ai.google.dev/gemini-api/docs/code-execution>
44pub const CODE_EXECUTION_MODELS: &[&str] = &[
45    "gemini-3.6-flash",
46    "gemini-3.7-flash",
47    "gemini-3.8-flash",
48    "gemini-3-flash-preview",
49];
50
51// Convenience constants for commonly used models
52pub const GEMINI_3_6_FLASH: &str = "gemini-3.6-flash";
53pub const GEMINI_3_7_FLASH: &str = "gemini-3.7-flash";
54pub const GEMINI_3_8_FLASH: &str = "gemini-3.8-flash";
55pub const GEMINI_3_FLASH_PREVIEW: &str = "gemini-3-flash-preview";
56pub const GEMINI_3_PRO_IMAGE_PREVIEW: &str = "gemini-3-pro-image-preview";