openai_struct/models/chat_completion_response_message_audio.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/// pub ChatCompletionResponseMessageAudio : If the audio output modality is requested, this object contains data about the audio response from the model. [Learn more](/docs/guides/audio).
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ChatCompletionResponseMessageAudio {
18 /// Base64 encoded audio bytes generated by the model, in the format specified in the request.
19 #[serde(rename = "data")]
20 pub data: String,
21 /// The Unix timestamp (in seconds) for when this audio response will no longer be accessible on the server for use in multi-turn conversations.
22 #[serde(rename = "expires_at")]
23 pub expires_at: i32,
24 /// Unique identifier for this audio response.
25 #[serde(rename = "id")]
26 pub id: String,
27 /// Transcript of the audio generated by the model.
28 #[serde(rename = "transcript")]
29 pub transcript: String,
30}