pub enum MaxResponseOutputTokens {
Integer(i64),
Inf,
}
Expand description
Maximum number of output tokens for a single assistant response,
inclusive of tool calls. Provide an integer between 1 and 4096 to
limit output tokens, or inf
for the maximum available tokens for a
given model. Defaults to inf
.
Variants§
Trait Implementations§
Source§impl Clone for MaxResponseOutputTokens
impl Clone for MaxResponseOutputTokens
Source§fn clone(&self) -> MaxResponseOutputTokens
fn clone(&self) -> MaxResponseOutputTokens
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 MaxResponseOutputTokens
impl Debug for MaxResponseOutputTokens
Source§impl<'de> Deserialize<'de> for MaxResponseOutputTokens
impl<'de> Deserialize<'de> for MaxResponseOutputTokens
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
Source§impl PartialEq for MaxResponseOutputTokens
impl PartialEq for MaxResponseOutputTokens
Source§impl Serialize for MaxResponseOutputTokens
impl Serialize for MaxResponseOutputTokens
impl Copy for MaxResponseOutputTokens
impl StructuralPartialEq for MaxResponseOutputTokens
Auto Trait Implementations§
impl Freeze for MaxResponseOutputTokens
impl RefUnwindSafe for MaxResponseOutputTokens
impl Send for MaxResponseOutputTokens
impl Sync for MaxResponseOutputTokens
impl Unpin for MaxResponseOutputTokens
impl UnwindSafe for MaxResponseOutputTokens
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