pub enum Content {
String(String),
Array(Vec<ChatCompletionRequestMessageContentPartText>),
}
Expand description
The content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
Variants§
String(String)
The content used for a Predicted Output. This is often the text of a file you are regenerating with minor changes.
Array(Vec<ChatCompletionRequestMessageContentPartText>)
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text inputs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Content
impl<'de> Deserialize<'de> for Content
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 StructuralPartialEq for Content
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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