#[non_exhaustive]pub enum ModelCompleteStopReason {
End,
MaxTokens,
Unknown(String),
}Expand description
Why the model stopped on a completed call. Open: a server-produced
word, so a word a newer host adds decodes to Unknown.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
End
The answer ended, for any reason but the request’s bound.
MaxTokens
The provider stopped at the request’s maxTokens.
Unknown(String)
A value from a newer host, kept verbatim. Excluded from the generated schema; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for ModelCompleteStopReason
impl Clone for ModelCompleteStopReason
Source§impl Debug for ModelCompleteStopReason
impl Debug for ModelCompleteStopReason
Source§impl<'de> Deserialize<'de> for ModelCompleteStopReason
impl<'de> Deserialize<'de> for ModelCompleteStopReason
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 Eq for ModelCompleteStopReason
Source§impl PartialEq for ModelCompleteStopReason
impl PartialEq for ModelCompleteStopReason
Source§impl Serialize for ModelCompleteStopReason
impl Serialize for ModelCompleteStopReason
impl StructuralPartialEq for ModelCompleteStopReason
Auto Trait Implementations§
impl Forget for ModelCompleteStopReason
impl Freeze for ModelCompleteStopReason
impl Move for ModelCompleteStopReason
impl RefUnwindSafe for ModelCompleteStopReason
impl Send for ModelCompleteStopReason
impl Sync for ModelCompleteStopReason
impl Unpin for ModelCompleteStopReason
impl UnsafeUnpin for ModelCompleteStopReason
impl UnwindSafe for ModelCompleteStopReason
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