pub enum CreateChatCompletionRequestStop {
String(String),
Array(Vec<String>),
}Expand description
Up to 4 sequences where the API will stop generating further tokens.
JSON schema
{
"description": "Up to 4 sequences where the API will stop generating further tokens.\n",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
},
"maxItems": 4,
"minItems": 1
}
]
}Variants§
Trait Implementations§
Source§impl Clone for CreateChatCompletionRequestStop
impl Clone for CreateChatCompletionRequestStop
Source§fn clone(&self) -> CreateChatCompletionRequestStop
fn clone(&self) -> CreateChatCompletionRequestStop
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateChatCompletionRequestStop
impl<'de> Deserialize<'de> for CreateChatCompletionRequestStop
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
Auto Trait Implementations§
impl Freeze for CreateChatCompletionRequestStop
impl RefUnwindSafe for CreateChatCompletionRequestStop
impl Send for CreateChatCompletionRequestStop
impl Sync for CreateChatCompletionRequestStop
impl Unpin for CreateChatCompletionRequestStop
impl UnsafeUnpin for CreateChatCompletionRequestStop
impl UnwindSafe for CreateChatCompletionRequestStop
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