pub enum CreateCompletionResponseChoiceFinishReason {
Stop,
Length,
ContentFilter,
}
Expand description
The reason the model stopped generating tokens. This will be stop
if the model hit a natural stop point or a provided stop sequence,
length
if the maximum number of tokens specified in the request was reached,
or content_filter
if content was omitted due to a flag from our content filters.
Variants§
Trait Implementations§
Source§impl Clone for CreateCompletionResponseChoiceFinishReason
impl Clone for CreateCompletionResponseChoiceFinishReason
Source§fn clone(&self) -> CreateCompletionResponseChoiceFinishReason
fn clone(&self) -> CreateCompletionResponseChoiceFinishReason
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<'de> Deserialize<'de> for CreateCompletionResponseChoiceFinishReason
impl<'de> Deserialize<'de> for CreateCompletionResponseChoiceFinishReason
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 CreateCompletionResponseChoiceFinishReason
impl PartialEq for CreateCompletionResponseChoiceFinishReason
Source§fn eq(&self, other: &CreateCompletionResponseChoiceFinishReason) -> bool
fn eq(&self, other: &CreateCompletionResponseChoiceFinishReason) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CreateCompletionResponseChoiceFinishReason
impl StructuralPartialEq for CreateCompletionResponseChoiceFinishReason
Auto Trait Implementations§
impl Freeze for CreateCompletionResponseChoiceFinishReason
impl RefUnwindSafe for CreateCompletionResponseChoiceFinishReason
impl Send for CreateCompletionResponseChoiceFinishReason
impl Sync for CreateCompletionResponseChoiceFinishReason
impl Unpin for CreateCompletionResponseChoiceFinishReason
impl UnwindSafe for CreateCompletionResponseChoiceFinishReason
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