pub enum Model {
}
Variants§
ThreePointFiveTurbo
Four
FourTurbo
FourOmni
FourOmniMini
FourPointOne
FourPointOneMini
FourPointOneNano
O1
O3Mini
O3
O4Mini
Custom
Implementations§
Source§impl Model
impl Model
pub fn default_fast() -> Self
pub fn from_id(id: &str) -> Result<Self>
pub fn id(&self) -> &str
pub fn display_name(&self) -> &str
pub fn max_token_count(&self) -> u64
pub fn max_output_tokens(&self) -> Option<u64>
Sourcepub fn supports_parallel_tool_calls(&self) -> bool
pub fn supports_parallel_tool_calls(&self) -> bool
Returns whether the given model supports the parallel_tool_calls
parameter.
If the model does not support the parameter, do not pass it up, or the API will return an error.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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