pub enum OpenAiModel {
Gpt4o,
Gpt4oMini,
}
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§
Gpt4o
GPT-4o flagship (all-round best quality, vision support).
Gpt4oMini
GPT-4o mini (cheaper, currently in phased rollout).
Trait Implementations§
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 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 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