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 CreateTranscriptionResponseJson : Represents a transcription response returned by model, based on the provided input.

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

#[derive(Debug, Serialize, Deserialize)]
pub struct CreateTranscriptionResponseJson {
    /// The log probabilities of the tokens in the transcription. Only returned with the models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe` if `logprobs` is added to the `include` array.
    #[serde(rename = "logprobs")]
    pub logprobs: Option<Vec<crate::models::CreateTranscriptionResponseJsonLogprobs>>,
    /// The transcribed text.
    #[serde(rename = "text")]
    pub text: String,
}