pub enum PredictionContentContent {
Text(String),
Array(Vec<ChatCompletionRequestMessageContentPartText>),
}
Expand description
§on openai.yaml
oneOf:
- type: string
title: Text content
description: |
The content used for a Predicted Output. This is often the
text of a file you are regenerating with minor changes.
- type: array
description:
An array of content parts with a defined type. Supported options
differ based on the [model](/docs/models) being used to generate
the response. Can contain text inputs.
title: Array of content parts
items:
$ref: "#/components/schemas/ChatCompletionRequestMessageContentPartText"
minItems: 1
Variants§
Text(String)
Array(Vec<ChatCompletionRequestMessageContentPartText>)
Trait Implementations§
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
Auto Trait Implementations§
impl Freeze for PredictionContentContent
impl RefUnwindSafe for PredictionContentContent
impl Send for PredictionContentContent
impl Sync for PredictionContentContent
impl Unpin 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