pub struct DefaultChatOptions {
pub model: String,
pub frequency_penalty: f64,
pub max_tokens: u64,
pub presence_penalty: f64,
pub stop_sequences: Vec<String>,
pub temperature: f64,
pub top_k: u64,
pub top_p: u64,
}Fields§
§model: String§frequency_penalty: f64§max_tokens: u64§presence_penalty: f64§stop_sequences: Vec<String>§temperature: f64§top_k: u64§top_p: u64Trait Implementations§
Source§impl ChatOptions for DefaultChatOptions
impl ChatOptions for DefaultChatOptions
fn get_model(&self) -> &str
fn get_frequency_penalty(&self) -> f64
fn get_max_tokens(&self) -> u64
fn get_presence_penalty(&self) -> f64
fn get_stop_sequences(&self) -> &Vec<String>
fn get_temperature(&self) -> f64
fn get_top_k(&self) -> u64
fn get_top_p(&self) -> u64
fn set_model(&mut self, model: &str)
fn set_frequency_penalty(&mut self, frequency_penalty: f64)
fn set_max_tokens(&mut self, max_tokens: u64)
fn set_presence_penalty(&mut self, presence_penalty: f64)
fn set_stop_sequences(&mut self, stop_sequences: Vec<String>)
fn set_temperature(&mut self, temperature: f64)
fn set_top_k(&mut self, top_k: u64)
fn set_top_p(&mut self, top_p: u64)
Source§impl Clone for DefaultChatOptions
impl Clone for DefaultChatOptions
Source§fn clone(&self) -> DefaultChatOptions
fn clone(&self) -> DefaultChatOptions
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 Default for DefaultChatOptions
impl Default for DefaultChatOptions
Source§fn default() -> DefaultChatOptions
fn default() -> DefaultChatOptions
Returns the “default value” for a type. Read more
impl ModelOptions for DefaultChatOptions
Auto Trait Implementations§
impl Freeze for DefaultChatOptions
impl RefUnwindSafe for DefaultChatOptions
impl Send for DefaultChatOptions
impl Sync for DefaultChatOptions
impl Unpin for DefaultChatOptions
impl UnwindSafe for DefaultChatOptions
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