pub struct CreateCompletionRequestPrompt {}
Expand description
CreateCompletionRequestPrompt : The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays. Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
Implementations§
Source§impl CreateCompletionRequestPrompt
impl CreateCompletionRequestPrompt
Sourcepub fn new() -> CreateCompletionRequestPrompt
pub fn new() -> CreateCompletionRequestPrompt
The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays. Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
Trait Implementations§
Source§impl Clone for CreateCompletionRequestPrompt
impl Clone for CreateCompletionRequestPrompt
Source§fn clone(&self) -> CreateCompletionRequestPrompt
fn clone(&self) -> CreateCompletionRequestPrompt
Returns a copy 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 Default for CreateCompletionRequestPrompt
impl Default for CreateCompletionRequestPrompt
Source§fn default() -> CreateCompletionRequestPrompt
fn default() -> CreateCompletionRequestPrompt
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCompletionRequestPrompt
impl<'de> Deserialize<'de> for CreateCompletionRequestPrompt
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 CreateCompletionRequestPrompt
impl PartialEq for CreateCompletionRequestPrompt
Source§fn eq(&self, other: &CreateCompletionRequestPrompt) -> bool
fn eq(&self, other: &CreateCompletionRequestPrompt) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateCompletionRequestPrompt
Auto Trait Implementations§
impl Freeze for CreateCompletionRequestPrompt
impl RefUnwindSafe for CreateCompletionRequestPrompt
impl Send for CreateCompletionRequestPrompt
impl Sync for CreateCompletionRequestPrompt
impl Unpin for CreateCompletionRequestPrompt
impl UnwindSafe for CreateCompletionRequestPrompt
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