pub struct LLMOptions {
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub top_p: Option<f32>,
pub top_k: Option<u32>,
pub frequency_penalty: Option<f32>,
pub presence_penalty: Option<f32>,
pub stop_sequences: Option<Vec<String>>,
pub seed: Option<u64>,
pub response_format: Option<ResponseFormat>,
}Fields§
§temperature: Option<f32>§max_tokens: Option<u32>§top_p: Option<f32>§top_k: Option<u32>§frequency_penalty: Option<f32>§presence_penalty: Option<f32>§stop_sequences: Option<Vec<String>>§seed: Option<u64>§response_format: Option<ResponseFormat>Trait Implementations§
Source§impl Clone for LLMOptions
impl Clone for LLMOptions
Source§fn clone(&self) -> LLMOptions
fn clone(&self) -> LLMOptions
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 Debug for LLMOptions
impl Debug for LLMOptions
Auto Trait Implementations§
impl Freeze for LLMOptions
impl RefUnwindSafe for LLMOptions
impl Send for LLMOptions
impl Sync for LLMOptions
impl Unpin for LLMOptions
impl UnsafeUnpin for LLMOptions
impl UnwindSafe for LLMOptions
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