pub struct ChatClientSettings { /* private fields */ }Expand description
Tuning knobs for chat completion requests.
Use the chainable setter methods to configure, e.g.:
ⓘ
let client = model.create_chat_client()
.temperature(0.7)
.max_tokens(256);Trait Implementations§
Source§impl Clone for ChatClientSettings
impl Clone for ChatClientSettings
Source§fn clone(&self) -> ChatClientSettings
fn clone(&self) -> ChatClientSettings
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 ChatClientSettings
impl Debug for ChatClientSettings
Source§impl Default for ChatClientSettings
impl Default for ChatClientSettings
Source§fn default() -> ChatClientSettings
fn default() -> ChatClientSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChatClientSettings
impl RefUnwindSafe for ChatClientSettings
impl Send for ChatClientSettings
impl Sync for ChatClientSettings
impl Unpin for ChatClientSettings
impl UnsafeUnpin for ChatClientSettings
impl UnwindSafe for ChatClientSettings
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