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};

/// SessionConfiguration1 : The session configuration for either a realtime or transcription session.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum SessionConfiguration1 {
    #[serde(rename = "RealtimeSessionCreateResponseGA")]
    RealtimeSessionCreateResponseGa(Box<models::RealtimeSessionCreateResponseGa>),
    #[serde(rename = "RealtimeTranscriptionSessionCreateResponseGA")]
    RealtimeTranscriptionSessionCreateResponseGa(
        Box<models::RealtimeTranscriptionSessionCreateResponseGa>,
    ),
}

/// The set of modalities the model can respond with. It defaults to `[\"audio\"]`, indicating that the model will respond with audio plus a transcript. `[\"text\"]` can be used to make the model respond with text only. It is not possible to request both `text` and `audio` at the same time.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum OutputModalities {
    Text,
    Audio,
}

/// Additional fields to include in server outputs. - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Include {
    ItemInputAudioTranscriptionLogprobs,
}