openai_struct/models/
create_eval_completions_run_data_source_sampling_params.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct CreateEvalCompletionsRunDataSourceSamplingParams {
16    /// The maximum number of tokens in the generated output.
17    #[serde(rename = "max_completion_tokens")]
18    pub max_completion_tokens: Option<i32>,
19    /// A seed value to initialize the randomness, during sampling.
20    #[serde(rename = "seed")]
21    pub seed: Option<i32>,
22    /// A higher temperature increases randomness in the outputs.
23    #[serde(rename = "temperature")]
24    pub temperature: Option<f32>,
25    /// An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
26    #[serde(rename = "top_p")]
27    pub top_p: Option<f32>,
28}