openai_struct/models/
create_model_response_properties.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 CreateModelResponseProperties {
16    #[serde(rename = "metadata")]
17    pub metadata: Option<crate::models::Metadata>,
18    #[serde(rename = "service_tier")]
19    pub service_tier: Option<crate::models::ServiceTier>,
20    /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both.
21    #[serde(rename = "temperature")]
22    pub temperature: Option<f32>,
23    /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.  We generally recommend altering this or `temperature` but not both.
24    #[serde(rename = "top_p")]
25    pub top_p: Option<f32>,
26    /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
27    #[serde(rename = "user")]
28    pub user: Option<String>,
29}