pub struct AudioToTextBody<N>{
pub model: N,
pub temperature: Option<f32>,
pub stream: Option<bool>,
pub request_id: Option<String>,
pub user_id: Option<String>,
}Expand description
Body parameters holder for audio transcription (used to build multipart form)
Fields§
§model: NModel code (e.g., glm-asr)
temperature: Option<f32>Sampling temperature [0.0, 1.0], default 0.95
stream: Option<bool>Stream mode flag (sync call should keep false or omit)
request_id: Option<String>Client-provided unique request id
user_id: Option<String>End user id (6..=128 chars)
Implementations§
Source§impl<N> AudioToTextBody<N>
impl<N> AudioToTextBody<N>
pub fn new(model: N) -> Self
pub fn with_temperature(self, temperature: f32) -> Self
pub fn with_stream(self, stream: bool) -> Self
pub fn with_request_id(self, request_id: impl Into<String>) -> Self
pub fn with_user_id(self, user_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl<N> Clone for AudioToTextBody<N>
impl<N> Clone for AudioToTextBody<N>
Source§fn clone(&self) -> AudioToTextBody<N>
fn clone(&self) -> AudioToTextBody<N>
Returns a duplicate 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 moreSource§impl<N> Debug for AudioToTextBody<N>
impl<N> Debug for AudioToTextBody<N>
Source§impl<N> Serialize for AudioToTextBody<N>
impl<N> Serialize for AudioToTextBody<N>
Source§impl<N> Validate for AudioToTextBody<N>
impl<N> Validate for AudioToTextBody<N>
Source§impl<'v_a, N> ValidateArgs<'v_a> for AudioToTextBody<N>
impl<'v_a, N> ValidateArgs<'v_a> for AudioToTextBody<N>
Auto Trait Implementations§
impl<N> Freeze for AudioToTextBody<N>where
N: Freeze,
impl<N> RefUnwindSafe for AudioToTextBody<N>where
N: RefUnwindSafe,
impl<N> Send for AudioToTextBody<N>where
N: Send,
impl<N> Sync for AudioToTextBody<N>where
N: Sync,
impl<N> Unpin for AudioToTextBody<N>where
N: Unpin,
impl<N> UnsafeUnpin for AudioToTextBody<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for AudioToTextBody<N>where
N: UnwindSafe,
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