pub struct CreateEvalCompletionsRunDataSource_SamplingParams {
pub temperature: Option<f64>,
pub max_completion_tokens: Option<i64>,
pub top_p: Option<f64>,
pub seed: Option<i64>,
}
Fields§
§temperature: Option<f64>
A higher temperature increases randomness in the outputs.
max_completion_tokens: Option<i64>
The maximum number of tokens in the generated output.
top_p: Option<f64>
An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
seed: Option<i64>
A seed value to initialize the randomness, during sampling.
Trait Implementations§
Source§impl Clone for CreateEvalCompletionsRunDataSource_SamplingParams
impl Clone for CreateEvalCompletionsRunDataSource_SamplingParams
Source§fn clone(&self) -> CreateEvalCompletionsRunDataSource_SamplingParams
fn clone(&self) -> CreateEvalCompletionsRunDataSource_SamplingParams
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 moreSource§impl Default for CreateEvalCompletionsRunDataSource_SamplingParams
impl Default for CreateEvalCompletionsRunDataSource_SamplingParams
Source§fn default() -> CreateEvalCompletionsRunDataSource_SamplingParams
fn default() -> CreateEvalCompletionsRunDataSource_SamplingParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateEvalCompletionsRunDataSource_SamplingParams
impl RefUnwindSafe for CreateEvalCompletionsRunDataSource_SamplingParams
impl Send for CreateEvalCompletionsRunDataSource_SamplingParams
impl Sync for CreateEvalCompletionsRunDataSource_SamplingParams
impl Unpin for CreateEvalCompletionsRunDataSource_SamplingParams
impl UnwindSafe for CreateEvalCompletionsRunDataSource_SamplingParams
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