pub struct CreateTranslationRequest {
pub file: String,
pub model: CreateTranslationRequest_Model,
pub prompt: String,
pub response_format: String,
pub temperature: f64,
}Fields§
§file: StringThe audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
model: CreateTranslationRequest_Model§prompt: StringAn optional text to guide the model’s style or continue a previous audio segment.
response_format: StringThe format of the output, in one of these options: json, text,
srt, verbose_json, or vtt.
temperature: f64The sampling temperature, between 0 and 1.
Trait Implementations§
Source§impl Clone for CreateTranslationRequest
impl Clone for CreateTranslationRequest
Source§fn clone(&self) -> CreateTranslationRequest
fn clone(&self) -> CreateTranslationRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateTranslationRequest
impl RefUnwindSafe for CreateTranslationRequest
impl Send for CreateTranslationRequest
impl Sync for CreateTranslationRequest
impl Unpin for CreateTranslationRequest
impl UnwindSafe for CreateTranslationRequest
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