pub enum OpenAiModel {
Show 24 variants
Gpt5,
Gpt5Nano,
Gpt5Mini,
Gpt5Pro,
Gpt5_1,
Gpt5_1Codex,
Gpt5_1CodexMini,
Gpt5_1CodexMax,
Gpt5_2,
Gpt5_2Pro,
Gpt5_2Codex,
Gpt5_3,
Gpt5_3Codex,
Gpt5_4,
Gpt5_4Pro,
Gpt5Codex,
Gpt4_1,
Gpt4_1Mini,
Gpt4_1Nano,
Gpt4o,
Gpt4oMini,
O3,
O3Mini,
O4Mini,
}Expand description
Exhaustive list of models officially supported by the OpenAI back-end.
Keeping the list small avoids accidental typos while still allowing
arbitrary model names through Model::Custom.
Variants§
Gpt5
Gpt5Nano
Gpt5Mini
Gpt5Pro
Gpt5_1
Gpt5_1Codex
Gpt5_1CodexMini
Gpt5_1CodexMax
Gpt5_2
Gpt5_2Pro
Gpt5_2Codex
Gpt5_3
Gpt5_3Codex
Gpt5_4
Gpt5_4Pro
Gpt5Codex
Gpt4_1
Gpt4_1Mini
Gpt4_1Nano
Gpt4o
Gpt4oMini
O3
O3Mini
O4Mini
Trait Implementations§
Source§impl AsRef<str> for OpenAiModel
impl AsRef<str> for OpenAiModel
Source§impl Clone for OpenAiModel
impl Clone for OpenAiModel
Source§fn clone(&self) -> OpenAiModel
fn clone(&self) -> OpenAiModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenAiModel
impl Debug for OpenAiModel
Source§impl From<OpenAiModel> for Model
impl From<OpenAiModel> for Model
Source§fn from(val: OpenAiModel) -> Self
fn from(val: OpenAiModel) -> Self
Converts to this type from the input type.
Source§impl FromStr for OpenAiModel
impl FromStr for OpenAiModel
Source§impl Hash for OpenAiModel
impl Hash for OpenAiModel
Source§impl PartialEq for OpenAiModel
impl PartialEq for OpenAiModel
impl Copy for OpenAiModel
impl Eq for OpenAiModel
impl StructuralPartialEq for OpenAiModel
Auto Trait Implementations§
impl Freeze for OpenAiModel
impl RefUnwindSafe for OpenAiModel
impl Send for OpenAiModel
impl Sync for OpenAiModel
impl Unpin for OpenAiModel
impl UnsafeUnpin for OpenAiModel
impl UnwindSafe for OpenAiModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more