pub struct CreateEvalCompletionsRunDataSourceSamplingParams {
pub max_completion_tokens: Option<i32>,
pub seed: Option<i32>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
}
Fields§
§max_completion_tokens: Option<i32>
The maximum number of tokens in the generated output.
seed: Option<i32>
A seed value to initialize the randomness, during sampling.
temperature: Option<f32>
A higher temperature increases randomness in the outputs.
top_p: Option<f32>
An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateEvalCompletionsRunDataSourceSamplingParams
impl<'de> Deserialize<'de> for CreateEvalCompletionsRunDataSourceSamplingParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateEvalCompletionsRunDataSourceSamplingParams
impl RefUnwindSafe for CreateEvalCompletionsRunDataSourceSamplingParams
impl Send for CreateEvalCompletionsRunDataSourceSamplingParams
impl Sync for CreateEvalCompletionsRunDataSourceSamplingParams
impl Unpin for CreateEvalCompletionsRunDataSourceSamplingParams
impl UnwindSafe for CreateEvalCompletionsRunDataSourceSamplingParams
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