pub struct WhisperRunOptions {
pub initial_prompt: Option<String>,
pub condition_on_prev_tokens: Option<bool>,
pub temperature: Option<f32>,
pub temperature_inc: Option<f32>,
pub compression_ratio_thold: Option<f32>,
pub logprob_thold: Option<f32>,
pub no_speech_thold: Option<f32>,
pub max_prev_context_tokens: Option<i32>,
pub seed: Option<u32>,
pub max_initial_timestamp: Option<f32>,
}Expand description
Whisper run-extension knobs (run slot): initial prompt, temperature
fallback, and decode thresholds. None keeps the family default.
Fields§
§initial_prompt: Option<String>§condition_on_prev_tokens: Option<bool>§temperature: Option<f32>§temperature_inc: Option<f32>§compression_ratio_thold: Option<f32>§logprob_thold: Option<f32>§no_speech_thold: Option<f32>§max_prev_context_tokens: Option<i32>§seed: Option<u32>§max_initial_timestamp: Option<f32>Trait Implementations§
Source§impl Clone for WhisperRunOptions
impl Clone for WhisperRunOptions
Source§fn clone(&self) -> WhisperRunOptions
fn clone(&self) -> WhisperRunOptions
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 WhisperRunOptions
impl Debug for WhisperRunOptions
Source§impl Default for WhisperRunOptions
impl Default for WhisperRunOptions
Source§fn default() -> WhisperRunOptions
fn default() -> WhisperRunOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for WhisperRunOptions
impl PartialEq for WhisperRunOptions
Source§fn eq(&self, other: &WhisperRunOptions) -> bool
fn eq(&self, other: &WhisperRunOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WhisperRunOptions
Auto Trait Implementations§
impl Freeze for WhisperRunOptions
impl RefUnwindSafe for WhisperRunOptions
impl Send for WhisperRunOptions
impl Sync for WhisperRunOptions
impl Unpin for WhisperRunOptions
impl UnsafeUnpin for WhisperRunOptions
impl UnwindSafe for WhisperRunOptions
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