pub struct TranscriptionOptions {
pub audio: FileBytes,
pub media_type: String,
pub provider_options: Option<ProviderOptions>,
pub headers: Option<Headers>,
}Expand description
Options for one TranscriptionModel::do_generate call.
Mirrors TranscriptionModelV4CallOptions.
Fields§
§audio: FileBytesRaw audio bytes (or a base64 string captured as FileBytes::Base64).
media_type: StringIANA media type of the audio (e.g. "audio/wav").
provider_options: Option<ProviderOptions>Provider-specific options.
headers: Option<Headers>Extra HTTP headers.
Trait Implementations§
Source§impl Clone for TranscriptionOptions
impl Clone for TranscriptionOptions
Source§fn clone(&self) -> TranscriptionOptions
fn clone(&self) -> TranscriptionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TranscriptionOptions
impl Debug for TranscriptionOptions
Source§impl<'de> Deserialize<'de> for TranscriptionOptions
impl<'de> Deserialize<'de> for TranscriptionOptions
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 TranscriptionOptions
impl RefUnwindSafe for TranscriptionOptions
impl Send for TranscriptionOptions
impl Sync for TranscriptionOptions
impl Unpin for TranscriptionOptions
impl UnsafeUnpin for TranscriptionOptions
impl UnwindSafe for TranscriptionOptions
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