pub mod gpt_4o {
pub const GPT_4O: &str = "gpt-4o";
pub const GPT_4O_MINI: &str = "gpt-4o-mini";
pub const GPT_4O_AUDIO_PREVIEW: &str = "gpt-4o-audio-preview";
pub const GPT_4O_AUDIO_PREVIEW_2024_12_17: &str = "gpt-4o-audio-preview-2024-12-17";
pub const GPT_4O_AUDIO_PREVIEW_2024_10_01: &str = "gpt-4o-audio-preview-2024-10-01";
pub const GPT_4O_MINI_AUDIO_PREVIEW: &str = "gpt-4o-mini-audio-preview";
pub const GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17: &str = "gpt-4o-mini-audio-preview-2024-12-17";
pub const ALL: &[&str] = &[
GPT_4O,
GPT_4O_MINI,
GPT_4O_AUDIO_PREVIEW,
GPT_4O_AUDIO_PREVIEW_2024_12_17,
GPT_4O_AUDIO_PREVIEW_2024_10_01,
GPT_4O_MINI_AUDIO_PREVIEW,
GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17,
];
}
pub mod gpt_4_1 {
pub const GPT_4_1: &str = "gpt-4.1";
pub const GPT_4_1_MINI: &str = "gpt-4.1-mini";
pub const GPT_4_1_NANO: &str = "gpt-4.1-nano";
pub const ALL: &[&str] = &[GPT_4_1, GPT_4_1_MINI, GPT_4_1_NANO];
}
pub mod gpt_4_5 {
pub const GPT_4_5_PREVIEW_2025_02_27: &str = "gpt-4.5-preview-2025-02-27";
pub const GPT_4_5_PREVIEW: &str = "gpt-4.5-preview";
pub const GPT_4_5: &str = "gpt-4.5";
pub const ALL: &[&str] = &[GPT_4_5_PREVIEW_2025_02_27, GPT_4_5_PREVIEW, GPT_4_5];
}
pub mod gpt_4_turbo {
pub const GPT_4_TURBO: &str = "gpt-4-turbo";
pub const GPT_4_TURBO_PREVIEW: &str = "gpt-4-turbo-preview";
pub const GPT_4_TURBO_2024_04_09: &str = "gpt-4-turbo-2024-04-09";
pub const GPT_4_1106_PREVIEW: &str = "gpt-4-1106-preview";
pub const GPT_4_0125_PREVIEW: &str = "gpt-4-0125-preview";
pub const ALL: &[&str] = &[
GPT_4_TURBO,
GPT_4_TURBO_PREVIEW,
GPT_4_TURBO_2024_04_09,
GPT_4_1106_PREVIEW,
GPT_4_0125_PREVIEW,
];
}
pub mod gpt_4 {
pub const GPT_4: &str = "gpt-4";
pub const GPT_4_32K: &str = "gpt-4-32k";
pub const ALL: &[&str] = &[GPT_4, GPT_4_32K];
}
pub mod o1 {
pub const O1: &str = "o1";
pub const O1_2024_12_17: &str = "o1-2024-12-17";
pub const O1_PREVIEW: &str = "o1-preview";
pub const O1_MINI: &str = "o1-mini";
pub const ALL: &[&str] = &[O1, O1_2024_12_17, O1_PREVIEW, O1_MINI];
}
pub mod o3 {
pub const O3_MINI: &str = "o3-mini";
pub const O3: &str = "o3";
pub const ALL: &[&str] = &[O3_MINI, O3];
}
pub mod o4 {
pub const O4_MINI: &str = "o4-mini";
pub const ALL: &[&str] = &[O4_MINI];
}
pub mod gpt_5 {
pub const GPT_5: &str = "gpt-5";
pub const GPT_5_MINI: &str = "gpt-5-mini";
pub const GPT_5_NANO: &str = "gpt-5-nano";
pub const GPT_5_2025_08_07: &str = "gpt-5-2025-08-07";
pub const GPT_5_MINI_2025_08_07: &str = "gpt-5-mini-2025-08-07";
pub const GPT_5_NANO_2025_08_07: &str = "gpt-5-nano-2025-08-07";
pub const ALL: &[&str] = &[
GPT_5,
GPT_5_MINI,
GPT_5_NANO,
GPT_5_2025_08_07,
GPT_5_MINI_2025_08_07,
GPT_5_NANO_2025_08_07,
];
}
pub mod gpt_3_5 {
pub const GPT_3_5_TURBO: &str = "gpt-3.5-turbo";
pub const GPT_3_5_TURBO_16K: &str = "gpt-3.5-turbo-16k";
pub const GPT_3_5_TURBO_INSTRUCT: &str = "gpt-3.5-turbo-instruct";
pub const ALL: &[&str] = &[GPT_3_5_TURBO, GPT_3_5_TURBO_16K, GPT_3_5_TURBO_INSTRUCT];
}
pub mod audio {
pub const TTS_1: &str = "tts-1";
pub const TTS_1_HD: &str = "tts-1-hd";
pub const WHISPER_1: &str = "whisper-1";
pub const ALL: &[&str] = &[TTS_1, TTS_1_HD, WHISPER_1];
}
pub mod images {
pub const DALL_E_2: &str = "dall-e-2";
pub const DALL_E_3: &str = "dall-e-3";
pub const ALL: &[&str] = &[DALL_E_2, DALL_E_3];
}
pub mod embeddings {
pub const TEXT_EMBEDDING_3_SMALL: &str = "text-embedding-3-small";
pub const TEXT_EMBEDDING_3_LARGE: &str = "text-embedding-3-large";
pub const TEXT_EMBEDDING_ADA_002: &str = "text-embedding-ada-002";
pub const ALL: &[&str] = &[
TEXT_EMBEDDING_3_SMALL,
TEXT_EMBEDDING_3_LARGE,
TEXT_EMBEDDING_ADA_002,
];
}
pub mod moderation {
pub const TEXT_MODERATION_LATEST: &str = "text-moderation-latest";
pub const TEXT_MODERATION_STABLE: &str = "text-moderation-stable";
pub const ALL: &[&str] = &[TEXT_MODERATION_LATEST, TEXT_MODERATION_STABLE];
}
pub mod popular {
use super::*;
pub const FLAGSHIP: &str = gpt_4o::GPT_4O;
pub const BALANCED: &str = gpt_4o::GPT_4O_MINI;
pub const REASONING: &str = o1::O1;
pub const ECONOMICAL: &str = gpt_3_5::GPT_3_5_TURBO;
pub const LATEST: &str = gpt_5::GPT_5;
}
pub fn all_chat_models() -> Vec<&'static str> {
let mut models = Vec::new();
models.extend_from_slice(gpt_4o::ALL);
models.extend_from_slice(gpt_4_1::ALL);
models.extend_from_slice(gpt_4_5::ALL);
models.extend_from_slice(gpt_4_turbo::ALL);
models.extend_from_slice(gpt_4::ALL);
models.extend_from_slice(o1::ALL);
models.extend_from_slice(o3::ALL);
models.extend_from_slice(o4::ALL);
models.extend_from_slice(gpt_5::ALL);
models.extend_from_slice(gpt_3_5::ALL);
models
}
pub fn all_reasoning_models() -> Vec<&'static str> {
let mut models = Vec::new();
models.extend_from_slice(o1::ALL);
models.extend_from_slice(o3::ALL);
models.extend_from_slice(o4::ALL);
models
}
pub fn all_multimodal_models() -> Vec<&'static str> {
let mut models = Vec::new();
models.extend_from_slice(gpt_4o::ALL);
models.extend_from_slice(gpt_4_1::ALL);
models.extend_from_slice(gpt_4_5::ALL);
models.extend_from_slice(gpt_5::ALL);
models
}