1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
//! Model & endpoint constants
//!
//! These constants only cover **stable, recommended, non-snapshot** model names
//! plus well-known OpenAI-compatible API base URLs.
//! Users can always pass custom strings for newer snapshot models.
/// Default `OpenAI` API base URL (chat, embeddings, etc.).
pub const OPENAI_BASE_URL: &str = "https://api.openai.com/v1";
/// [`Deepseek`](https://api-docs.deepseek.com)'s OpenAI-compatible base URL.
pub const DEEPSEEK_BASE_URL: &str = "https://api.deepseek.com/v1";
/// [`OpenRouter`](https://openrouter.ai)'s OpenAI-compatible base URL.
pub const OPENROUTER_BASE_URL: &str = "https://openrouter.ai/api/v1";
// ============================================================
// 1. GPT-5 FAMILY (Latest, reasoning-enhanced large models)
// ============================================================
/// Latest flagship model. The `gpt-5.6` alias routes to `gpt-5.6-sol`.
pub const GPT5_6: &str = "gpt-5.6";
/// Frontier-capability GPT-5.6 variant, the target of the `gpt-5.6` alias.
pub const GPT5_6_SOL: &str = "gpt-5.6-sol";
/// GPT-5.6 variant offering strong performance at lower cost.
pub const GPT5_6_TERRA: &str = "gpt-5.6-terra";
/// GPT-5.6 variant tuned for efficient, high-volume workloads.
pub const GPT5_6_LUNA: &str = "gpt-5.6-luna";
/// GPT-5.2 model (kept for compatibility).
pub const GPT5_2: &str = "gpt-5.2";
/// Dynamic alias pointing to the latest GPT-5.2 chat model.
pub const GPT5_2_CHAT_LATEST: &str = "gpt-5.2-chat-latest";
/// Maximum-capability GPT-5.2 variant.
pub const GPT5_2_PRO: &str = "gpt-5.2-pro";
/// GPT-5.1 model (kept for compatibility).
pub const GPT5_1: &str = "gpt-5.1";
/// GPT-5.1 Codex Max model for specialized coding workflows.
pub const GPT5_1_CODEX_MAX: &str = "gpt-5.1-codex-max";
/// Original GPT-5 model identifier (kept for compatibility).
pub const GPT5: &str = "gpt-5";
/// Smaller, cheaper GPT-5 variant with excellent general performance.
pub const GPT5_MINI: &str = "gpt-5-mini";
/// Smallest GPT-5 variant optimized for speed & cost.
pub const GPT5_NANO: &str = "gpt-5-nano";
/// Dynamic alias pointing to the latest GPT-5 chat model.
pub const GPT5_CHAT_LATEST: &str = GPT5_2_CHAT_LATEST;
// ============================================================
// 2. GPT-4.1 FAMILY (High-quality non-reasoning models)
// ============================================================
/// Strong general model without deep reasoning overhead.
pub const GPT41: &str = "gpt-4.1";
/// Smaller, faster 4.1 model for chat & apps.
pub const GPT41_MINI: &str = "gpt-4.1-mini";
/// Lowest-cost 4.1 model.
pub const GPT41_NANO: &str = "gpt-4.1-nano";
// ============================================================
// 3. GPT-4o FAMILY (Multimodal, fast, balanced)
// ============================================================
/// Multimodal flagship (text+vision, fast and strong).
pub const GPT4O: &str = "gpt-4o";
/// Cheapest small multimodal model, great for apps.
pub const GPT4O_MINI: &str = "gpt-4o-mini";
/// Dynamic alias used by `ChatGPT` for “best available 4o”.
///
/// `OpenAI` recommends using non-ChatGPT model identifiers for API usage.
pub const CHATGPT_4O_LATEST: &str = "chatgpt-4o-latest";
// ============================================================
// 4. REASONING MODELS (Long-thinking / chain-of-thought)
// ============================================================
/// High-quality reasoning model (deep thinking).
pub const O1: &str = "o1";
/// Fast & light reasoning model.
pub const O1_MINI: &str = "o1-mini";
/// Maximum compute reasoning model (slow but extremely accurate).
pub const O3_PRO: &str = "o3-pro";
/// Cheaper, smaller o3 model.
pub const O3_MINI: &str = "o3-mini";
// ============================================================
// 5. DEEP RESEARCH MODELS (Autonomous research agents)
// ============================================================
/// Advanced deep research model (internet research).
pub const O3_DEEP_RESEARCH: &str = "o3-deep-research";
/// Smaller deep-research model for lightweight agent tasks.
pub const O4_MINI_DEEP_RESEARCH: &str = "o4-mini-deep-research";
// ============================================================
// 6. EMBEDDING MODELS
// ============================================================
/// Small + inexpensive embedding model (1536-dim).
pub const EMBEDDING_SMALL: &str = "text-embedding-3-small";
/// High-accuracy embedding model (3072-dim).
pub const EMBEDDING_LARGE: &str = "text-embedding-3-large";
/// Legacy embedding model (kept for backward compatibility).
pub const EMBEDDING_ADA002: &str = "text-embedding-ada-002";
// ============================================================
// 7. IMAGE GENERATION MODELS
// ============================================================
/// Latest `OpenAI` image model (highest quality).
pub const IMAGE_GPT_1_5: &str = "gpt-image-1.5";
/// Previous `OpenAI` image model (kept for compatibility).
pub const IMAGE_GPT: &str = "gpt-image-1";
/// Fast, smaller image model.
pub const IMAGE_GPT_MINI: &str = "gpt-image-1-mini";
/// DALL·E 3 model (still supported).
pub const DALLE3: &str = "dall-e-3";
// ============================================================
// 8. TEXT-TO-SPEECH (TTS) MODELS
// ============================================================
/// Recommended TTS model (fast, high quality).
pub const TTS_GPT4O_MINI: &str = "gpt-4o-mini-tts";
/// Higher-fidelity TTS model.
pub const TTS_1_HD: &str = "tts-1-hd";
/// Legacy TTS model identifier kept for compatibility.
pub const TTS_GPT4O: &str = "gpt-4o-tts";
/// Legacy Whisper TTS model.
pub const TTS_1: &str = "tts-1";
// ============================================================
// 9. SPEECH-TO-TEXT (Transcription)
// ============================================================
/// Main modern transcription model.
pub const STT_GPT4O: &str = "gpt-4o-transcribe";
/// Transcription + speaker diarization.
pub const STT_GPT4O_DIARIZE: &str = "gpt-4o-transcribe-diarize";
/// Fast small transcription model.
pub const STT_GPT4O_MINI: &str = "gpt-4o-mini-transcribe";
/// Legacy Whisper speech-to-text model.
pub const WHISPER_1: &str = "whisper-1";
// ============================================================
// 10. MODERATION (Safety Classification)
// ============================================================
/// Latest and recommended `OpenAI` moderation model.
pub const MODERATION_LATEST: &str = "omni-moderation-latest";
/// Legacy text-only moderation model.
pub const MODERATION_TEXT: &str = "text-moderation-latest";