openai-struct 0.0.4

利用openai的openapi生成的rust结构体
Documentation
/*
 * OpenAI API
 *
 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
 *
 * OpenAPI spec pub version: 2.3.0
 *
 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
 */

/// pub FineTuneChatRequestInput : The per-line training example of a fine-tuning input file for chat models using the supervised method.

#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct FineTuneChatRequestInput {
    /// A list of functions the model may generate JSON inputs for.
    #[serde(rename = "functions")]
    pub functions: Option<Vec<crate::models::ChatCompletionFunctions>>,
    #[serde(rename = "messages")]
    pub messages: Option<Vec<Value>>,
    #[serde(rename = "parallel_tool_calls")]
    pub parallel_tool_calls: Option<crate::models::ParallelToolCalls>,
    /// A list of tools the model may generate JSON inputs for.
    #[serde(rename = "tools")]
    pub tools: Option<Vec<crate::models::ChatCompletionTool>>,
}