Skip to main content

ChatModel

Enum ChatModel 

Source
#[non_exhaustive]
pub enum ChatModel {
Show 78 variants Gpt54, Gpt54Mini, Gpt54Nano, Gpt54Mini20260317, Gpt54Nano20260317, Gpt53ChatLatest, Gpt52, Gpt5220251211, Gpt52ChatLatest, Gpt52Pro, Gpt52Pro20251211, Gpt51, Gpt5120251113, Gpt51Codex, Gpt51Mini, Gpt51ChatLatest, Gpt5, Gpt5Mini, Gpt5Nano, Gpt520250807, Gpt5Mini20250807, Gpt5Nano20250807, Gpt5ChatLatest, Gpt41, Gpt41Mini, Gpt41Nano, Gpt4120250414, Gpt41Mini20250414, Gpt41Nano20250414, O4Mini, O4Mini20250416, O3, O320250416, O3Mini, O3Mini20250131, O1, O120241217, O1Preview, O1Preview20240912, O1Mini, O1Mini20240912, Gpt4o, Gpt4o20241120, Gpt4o20240806, Gpt4o20240513, Gpt4oAudioPreview, Gpt4oAudioPreview20241001, Gpt4oAudioPreview20241217, Gpt4oAudioPreview20250603, Gpt4oMiniAudioPreview, Gpt4oMiniAudioPreview20241217, Gpt4oSearchPreview, Gpt4oMiniSearchPreview, Gpt4oSearchPreview20250311, Gpt4oMiniSearchPreview20250311, Chatgpt4oLatest, CodexMiniLatest, Gpt4oMini, Gpt4oMini20240718, Gpt4Turbo, Gpt4Turbo20240409, Gpt40125Preview, Gpt4TurboPreview, Gpt41106Preview, Gpt4VisionPreview, Gpt4, Gpt40314, Gpt40613, Gpt432k, Gpt432k0314, Gpt432k0613, Gpt35Turbo, Gpt35Turbo16k, Gpt35Turbo0301, Gpt35Turbo0613, Gpt35Turbo1106, Gpt35Turbo0125, Gpt35Turbo16k0613,
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Gpt54

§

Gpt54Mini

§

Gpt54Nano

§

Gpt54Mini20260317

§

Gpt54Nano20260317

§

Gpt53ChatLatest

§

Gpt52

§

Gpt5220251211

§

Gpt52ChatLatest

§

Gpt52Pro

§

Gpt52Pro20251211

§

Gpt51

§

Gpt5120251113

§

Gpt51Codex

§

Gpt51Mini

§

Gpt51ChatLatest

§

Gpt5

§

Gpt5Mini

§

Gpt5Nano

§

Gpt520250807

§

Gpt5Mini20250807

§

Gpt5Nano20250807

§

Gpt5ChatLatest

§

Gpt41

§

Gpt41Mini

§

Gpt41Nano

§

Gpt4120250414

§

Gpt41Mini20250414

§

Gpt41Nano20250414

§

O4Mini

§

O4Mini20250416

§

O3

§

O320250416

§

O3Mini

§

O3Mini20250131

§

O1

§

O120241217

§

O1Preview

§

O1Preview20240912

§

O1Mini

§

O1Mini20240912

§

Gpt4o

§

Gpt4o20241120

§

Gpt4o20240806

§

Gpt4o20240513

§

Gpt4oAudioPreview

§

Gpt4oAudioPreview20241001

§

Gpt4oAudioPreview20241217

§

Gpt4oAudioPreview20250603

§

Gpt4oMiniAudioPreview

§

Gpt4oMiniAudioPreview20241217

§

Gpt4oSearchPreview

§

Gpt4oMiniSearchPreview

§

Gpt4oSearchPreview20250311

§

Gpt4oMiniSearchPreview20250311

§

Chatgpt4oLatest

§

CodexMiniLatest

§

Gpt4oMini

§

Gpt4oMini20240718

§

Gpt4Turbo

§

Gpt4Turbo20240409

§

Gpt40125Preview

§

Gpt4TurboPreview

§

Gpt41106Preview

§

Gpt4VisionPreview

§

Gpt4

§

Gpt40314

§

Gpt40613

§

Gpt432k

§

Gpt432k0314

§

Gpt432k0613

§

Gpt35Turbo

§

Gpt35Turbo16k

§

Gpt35Turbo0301

§

Gpt35Turbo0613

§

Gpt35Turbo1106

§

Gpt35Turbo0125

§

Gpt35Turbo16k0613

Trait Implementations§

Source§

impl Clone for ChatModel

Source§

fn clone(&self) -> ChatModel

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChatModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ChatModel

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ChatModel

Source§

impl PartialEq for ChatModel

Source§

fn eq(&self, other: &ChatModel) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ChatModel

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ChatModel

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.