pub struct CompletionOptions {
pub temperature: f32,
pub max_tokens: u16,
pub json_mode: bool,
}Expand description
Options for completion requests.
Fields§
§temperature: f32Temperature (0.0 - 2.0).
max_tokens: u16Max tokens to generate.
json_mode: boolRequest JSON output.
Trait Implementations§
Source§impl Clone for CompletionOptions
impl Clone for CompletionOptions
Source§fn clone(&self) -> CompletionOptions
fn clone(&self) -> CompletionOptions
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 CompletionOptions
impl Debug for CompletionOptions
Auto Trait Implementations§
impl Freeze for CompletionOptions
impl RefUnwindSafe for CompletionOptions
impl Send for CompletionOptions
impl Sync for CompletionOptions
impl Unpin for CompletionOptions
impl UnwindSafe for CompletionOptions
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