pub enum ResponsePropertiesTruncation {
Auto,
Disabled,
}
Expand description
The truncation strategy to use for the model response.
auto
: If the context of this response and previous ones exceeds the model’s context window size, the model will truncate the response to fit the context window by dropping input items in the middle of the conversation.disabled
(default): If a model response will exceed the context window size for a model, the request will fail with a 400 error.
Variants§
Trait Implementations§
Source§impl Clone for ResponsePropertiesTruncation
impl Clone for ResponsePropertiesTruncation
Source§fn clone(&self) -> ResponsePropertiesTruncation
fn clone(&self) -> ResponsePropertiesTruncation
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 ResponsePropertiesTruncation
impl Debug for ResponsePropertiesTruncation
Source§impl Default for ResponsePropertiesTruncation
impl Default for ResponsePropertiesTruncation
Source§fn default() -> ResponsePropertiesTruncation
fn default() -> ResponsePropertiesTruncation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponsePropertiesTruncation
impl<'de> Deserialize<'de> for ResponsePropertiesTruncation
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 ResponsePropertiesTruncation
impl PartialEq for ResponsePropertiesTruncation
Source§fn eq(&self, other: &ResponsePropertiesTruncation) -> bool
fn eq(&self, other: &ResponsePropertiesTruncation) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for ResponsePropertiesTruncation
impl StructuralPartialEq for ResponsePropertiesTruncation
Auto Trait Implementations§
impl Freeze for ResponsePropertiesTruncation
impl RefUnwindSafe for ResponsePropertiesTruncation
impl Send for ResponsePropertiesTruncation
impl Sync for ResponsePropertiesTruncation
impl Unpin for ResponsePropertiesTruncation
impl UnwindSafe for ResponsePropertiesTruncation
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