Skip to main content

vtcode_config/constants/models/
openai.rs

1pub const DEFAULT_MODEL: &str = "gpt-5.3-codex";
2pub const SUPPORTED_MODELS: &[&str] = &[
3    "gpt-5",
4    "gpt-5.2",
5    "gpt-5-mini",
6    "gpt-5-nano",
7    "gpt-5.3-codex", // GPT-5.3 Codex optimized for agentic coding with reasoning effort support
8    "gpt-oss-20b",
9    "gpt-oss-120b",
10];
11
12/// Models that require the OpenAI Responses API
13pub const RESPONSES_API_MODELS: &[&str] = &[GPT_5, GPT_5_2, GPT_5_MINI, GPT_5_NANO, GPT_5_3_CODEX];
14
15/// Models that support the OpenAI reasoning parameter payload
16pub const REASONING_MODELS: &[&str] = &[GPT_5, GPT_5_2, GPT_5_MINI, GPT_5_NANO, GPT_5_3_CODEX];
17
18/// Models that do not expose structured tool calling on the OpenAI platform
19pub const TOOL_UNAVAILABLE_MODELS: &[&str] = &[];
20
21/// GPT-OSS models that use harmony tokenization
22pub const HARMONY_MODELS: &[&str] = &[GPT_OSS_20B, GPT_OSS_120B];
23
24// Convenience constants for commonly used models
25pub const GPT_5: &str = "gpt-5";
26pub const GPT_5_2: &str = "gpt-5.2";
27pub const GPT_5_MINI: &str = "gpt-5-mini";
28pub const GPT_5_NANO: &str = "gpt-5-nano";
29pub const GPT_5_3_CODEX: &str = "gpt-5.3-codex"; // GPT-5.3 Codex optimized for agentic coding
30pub const GPT_OSS_20B: &str = "gpt-oss-20b";
31pub const GPT_OSS_120B: &str = "gpt-oss-120b";