Enum chat_flame_backend::llm::FinishReason
source · pub enum FinishReason {
Length,
EosToken,
StopSequence,
}
Expand description
Enumeration representing the reason why text generation was finished.
Indicates whether the generation stopped due to reaching the maximum length, encountering an end-of-sequence token, or hitting a specified stop sequence.
Variants§
Length
Generation stopped because the maximum length was reached.
EosToken
Generation stopped due to the model producing an end-of-sequence token.
StopSequence
Generation stopped because a specified stop sequence was encountered.
Trait Implementations§
source§impl Debug for FinishReason
impl Debug for FinishReason
source§impl PartialEq for FinishReason
impl PartialEq for FinishReason
source§fn eq(&self, other: &FinishReason) -> bool
fn eq(&self, other: &FinishReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FinishReason
Auto Trait Implementations§
impl RefUnwindSafe for FinishReason
impl Send for FinishReason
impl Sync for FinishReason
impl Unpin for FinishReason
impl UnwindSafe for FinishReason
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