pub struct GoogleRealtimeConfig {
pub top_p: Option<f64>,
pub top_k: Option<f64>,
pub presence_penalty: Option<f64>,
pub frequency_penalty: Option<f64>,
pub speech_config: Option<GeminiMultimodalLiveSpeechConfig>,
}
Fields§
§top_p: Option<f64>
This is the nucleus sampling parameter that controls the cumulative probability of tokens considered during text generation. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
top_k: Option<f64>
This is the top-k sampling parameter that limits the number of highest probability tokens considered during text generation. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
presence_penalty: Option<f64>
This is the presence penalty parameter that influences the model’s likelihood to repeat information by penalizing tokens based on their presence in the text. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
frequency_penalty: Option<f64>
This is the frequency penalty parameter that influences the model’s likelihood to repeat tokens by penalizing them based on their frequency in the text. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
speech_config: Option<GeminiMultimodalLiveSpeechConfig>
This is the speech configuration object that defines the voice settings to be used for the model’s speech output. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
Implementations§
Source§impl GoogleRealtimeConfig
impl GoogleRealtimeConfig
pub fn new() -> GoogleRealtimeConfig
Trait Implementations§
Source§impl Clone for GoogleRealtimeConfig
impl Clone for GoogleRealtimeConfig
Source§fn clone(&self) -> GoogleRealtimeConfig
fn clone(&self) -> GoogleRealtimeConfig
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more