Skip to main content

vtcode_config/constants/models/
openrouter.rs

1#[cfg(not(docsrs))]
2include!(concat!(env!("OUT_DIR"), "/openrouter_constants.rs"));
3
4// For docs.rs builds, define placeholder constants to avoid compilation errors
5// The generated constants file includes these when not building for docs.rs
6#[cfg(docsrs)]
7mod generated_constants {
8    pub const DEFAULT_MODEL: &str = "openrouter/auto";
9    pub const SUPPORTED_MODELS: &[&str] = &[];
10    pub const REASONING_MODELS: &[&str] = &[];
11    pub const TOOL_UNAVAILABLE_MODELS: &[&str] = &[];
12
13    // Define the constants that are referenced elsewhere to avoid compile errors
14    pub const X_AI_GROK_CODE_FAST_1: &str = "x-ai/grok-code-fast-1";
15    pub const QWEN3_CODER: &str = "qwen/qwen3-coder";
16    pub const QWEN3_CODER_NEXT: &str = "qwen/qwen3-coder-next";
17    pub const ANTHROPIC_CLAUDE_SONNET_4_5: &str = "anthropic/claude-sonnet-4.5";
18    pub const MINIMAX_M2_5: &str = "minimax/minimax-m2.5";
19
20    pub mod vendor {
21        pub mod openrouter {
22            pub const MODELS: &[&str] = &[];
23        }
24    }
25}
26
27// Re-export all constants to make them available at the module level
28#[cfg(docsrs)]
29pub use generated_constants::*;