pub enum PredictionContentContent {
Text(String),
Array(Vec<ChatCompletionRequestMessageContentPartText>),
}Available on crate feature
chat-completion-types only.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§
Text(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 Clone for PredictionContentContent
impl Clone for PredictionContentContent
Source§impl ComposeSchema for PredictionContentContent
Available on crate feature openapi only.
impl ComposeSchema for PredictionContentContent
Available on crate feature
openapi only.Source§impl Debug for PredictionContentContent
impl Debug for PredictionContentContent
Source§impl<'de> Deserialize<'de> for PredictionContentContent
impl<'de> Deserialize<'de> for PredictionContentContent
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 PredictionContentContent
impl PartialEq for PredictionContentContent
Source§impl Serialize for PredictionContentContent
impl Serialize for PredictionContentContent
impl StructuralPartialEq for PredictionContentContent
Source§impl ToSchema for PredictionContentContent
Available on crate feature openapi only.
impl ToSchema for PredictionContentContent
Available on crate feature
openapi only.Auto Trait Implementations§
impl Freeze for PredictionContentContent
impl RefUnwindSafe for PredictionContentContent
impl Send for PredictionContentContent
impl Sync for PredictionContentContent
impl Unpin for PredictionContentContent
impl UnsafeUnpin for PredictionContentContent
impl UnwindSafe for PredictionContentContent
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