openai-client-base 0.12.0

Auto-generated Rust client for the OpenAI API
/*
 * OpenAI API
 *
 * The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
 *
 * The version of the OpenAPI document: 2.3.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// CreateFineTuningJobRequestHyperparametersNEpochs : The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
/// The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateFineTuningJobRequestHyperparametersNEpochs {
    Text(String),
    Integer(i32),
}

impl Default for CreateFineTuningJobRequestHyperparametersNEpochs {
    fn default() -> Self {
        Self::Text(Default::default())
    }
}