pub struct ChatCompletionModalities(/* private fields */);
Expand description
§on openapi.yaml
ChatCompletionModalities:
type: array
nullable: true
description: >
Output types that you would like the model to generate for this request.
Most models are capable of generating text, which is the default:
`["text"]`
The `gpt-4o-audio-preview` model can also be used to [generate
audio](/docs/guides/audio). To
request that this model generate both text and audio responses, you can
use:
`["text", "audio"]`
items:
type: string
enum:
- text
- audio
Trait Implementations§
Source§impl Debug for ChatCompletionModalities
impl Debug for ChatCompletionModalities
Source§impl<'de> Deserialize<'de> for ChatCompletionModalities
impl<'de> Deserialize<'de> for ChatCompletionModalities
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 ChatCompletionModalities
impl RefUnwindSafe for ChatCompletionModalities
impl Send for ChatCompletionModalities
impl Sync for ChatCompletionModalities
impl Unpin for ChatCompletionModalities
impl UnwindSafe for ChatCompletionModalities
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