vtcode-config 0.188.0

Config loader components shared across VT Code and downstream adopters
Documentation
/// Default model - using the current stable Flash model for production reliability
pub const DEFAULT_MODEL: &str = GEMINI_3_8_FLASH;

pub const SUPPORTED_MODELS: &[&str] = &[
    "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)
    "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)
    "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)
    "gemini-4-argon", // Gemini 4 Argon - flagship for hardest problems (unified 1M window, 64k sync output, low/medium/high)
    "gemini-3.6-flash", // Gemini 3.6 Flash - flash model with improved capabilities
    "gemini-3.7-flash", // Legacy alias that automatically routes API requests to Gemini 3.8 Flash
    "gemini-3.8-flash", // Gemini 3.8 Flash - most intelligent Flash for long-horizon SWE/agents (1M, 64k output, low/medium/high)
    "gemini-3-flash-preview", // Fast version of Gemini 3 Pro with 3-level thinking
    "gemini-nano-banana-2.1", // Stable Gemini image generation and editing model
];

/// Models that support thinking/reasoning capability with configurable thinking_level
/// Based on: <https://ai.google.dev/gemini-api/docs/gemini-3> and
/// <https://ai.google.dev/gemini-api/docs/models/gemini-nano-banana-2.1>
/// Gemini 3 Pro: supports low, high
/// Gemini 3 Flash Preview: supports minimal, low, medium, high
/// Gemini 3.7/3.8 Flash: supports low, medium (default), high — `minimal` not supported on 3.8 and will error
/// Gemini Nano Banana 2.1: supports minimal, medium, high
pub const REASONING_MODELS: &[&str] = &[
    "gemini-4-neon",
    "gemini-4-hydrogen",
    "gemini-4-carbon",
    "gemini-4-argon",
    "gemini-3.6-flash",
    "gemini-3.7-flash",
    "gemini-3.8-flash",
    "gemini-3-flash-preview",
    GEMINI_NANO_BANANA_2_1,
];

/// Models that support extended thinking levels beyond the low/high baseline.
/// Gemini 3 Flash Preview and Nano Banana 2.1 support `minimal`; stable 3.7/3.8 Flash do not.
pub const EXTENDED_THINKING_MODELS: &[&str] = &["gemini-3-flash-preview", GEMINI_NANO_BANANA_2_1];

/// Models that support the `xhigh` thinking level (Gemini 4 Hydrogen and later).
/// Hydrogen and Neon default to `high` and add `xhigh` for hard multi-step problems.
pub const XHIGH_THINKING_MODELS: &[&str] = &["gemini-4-neon", "gemini-4-hydrogen"];

/// Google API models that support image generation; VT Code does not yet expose generated image artifacts.
pub const IMAGE_GENERATION_MODELS: &[&str] = &[GEMINI_NANO_BANANA_2_1];

/// Models that support context caching
/// Context caching reduces costs for repeated API calls with similar contexts
/// Reference: <https://ai.google.dev/gemini-api/docs/caching>
/// Gemini 4 Neon, Hydrogen, Argon, and Carbon support implicit caching only —
/// explicit `cachedContents` is not supported and requests referencing it fail;
/// prefer Implicit mode.
pub const CACHING_MODELS: &[&str] = &[
    "gemini-4-neon",
    "gemini-4-hydrogen",
    "gemini-4-carbon",
    "gemini-4-argon",
    "gemini-3.6-flash",
    "gemini-3.7-flash",
    "gemini-3.8-flash",
    "gemini-3-flash-preview",
];

/// Models that reject explicit `cachedContents` entirely and support implicit
/// caching only. The provider must skip its explicit-cache lifecycle for these
/// models even when `[prompt_cache] mode = "explicit"` is configured —
/// creation requests fail and references in generateContent bodies error.
/// Reference: <https://ai.google.dev/gemini-api/docs/models/gemini-4-argon>,
/// <https://ai.google.dev/gemini-api/docs/models/gemini-4-carbon>,
/// <https://ai.google.dev/gemini-api/docs/models/gemini-4-hydrogen>
pub const IMPLICIT_CACHING_ONLY_MODELS: &[&str] = &[
    "gemini-4-neon",
    "gemini-4-hydrogen",
    "gemini-4-carbon",
    "gemini-4-argon",
];

/// Models that support code execution (Python)
/// Code execution allows models to write and execute Python code
/// Reference: <https://ai.google.dev/gemini-api/docs/code-execution>
pub const CODE_EXECUTION_MODELS: &[&str] = &[
    "gemini-4-neon",
    "gemini-4-hydrogen",
    "gemini-4-carbon",
    "gemini-4-argon",
    "gemini-3.6-flash",
    "gemini-3.7-flash",
    "gemini-3.8-flash",
    "gemini-3-flash-preview",
];

// Convenience constants for commonly used models
pub const GEMINI_4_NEON: &str = "gemini-4-neon";
pub const GEMINI_4_HYDROGEN: &str = "gemini-4-hydrogen";
pub const GEMINI_4_CARBON: &str = "gemini-4-carbon";
pub const GEMINI_4_ARGON: &str = "gemini-4-argon";
pub const GEMINI_3_6_FLASH: &str = "gemini-3.6-flash";
pub const GEMINI_3_7_FLASH: &str = "gemini-3.7-flash";
pub const GEMINI_3_8_FLASH: &str = "gemini-3.8-flash";
pub const GEMINI_3_FLASH_PREVIEW: &str = "gemini-3-flash-preview";
pub const GEMINI_NANO_BANANA_2_1: &str = "gemini-nano-banana-2.1";

#[deprecated(note = "Gemini 3 Pro Image Preview shut down on June 25, 2026; use GEMINI_NANO_BANANA_2_1")]
pub const GEMINI_3_PRO_IMAGE_PREVIEW: &str = "gemini-3-pro-image-preview";