pub struct MessageConfig {
pub model: String,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub stream: Option<bool>,
pub max_tokens: Option<u32>,
pub repetition_penalty: Option<f32>,
}
Fields§
§model: String
§temperature: Option<f32>
§top_p: Option<f32>
§stream: Option<bool>
§max_tokens: Option<u32>
§repetition_penalty: Option<f32>
Trait Implementations§
Source§impl Clone for MessageConfig
impl Clone for MessageConfig
Source§fn clone(&self) -> MessageConfig
fn clone(&self) -> MessageConfig
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for MessageConfig
impl RefUnwindSafe for MessageConfig
impl Send for MessageConfig
impl Sync for MessageConfig
impl Unpin for MessageConfig
impl UnwindSafe for MessageConfig
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