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 ANTHROPIC_CLAUDE_SONNET_4_5: &str = "anthropic/claude-sonnet-4.5";
17
18    pub mod vendor {
19        pub mod openrouter {
20            pub const MODELS: &[&str] = &[];
21        }
22    }
23}
24
25// Re-export all constants to make them available at the module level
26#[cfg(docsrs)]
27pub use generated_constants::*;