Initializermacpaw.openai 0.3.8OpenAI
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s6OpenAI10ChatResultV6ChoiceV7MessageV5AudioV4fromAIs7Decoder_p_tKcfc
What are these?20RAD
import OpenAI
struct Audio
struct ChatResult
struct Choice
struct Message
protocol Decoder
A type that can decode values from a native format into in-memory representations.
let data: String
Base64 encoded audio bytes generated by the model, in the format specified in the request.
let expiresAt: Int
The Unix timestamp (in seconds) for when this audio response will no longer be accessible on the server for use in multi-turn conversations.
let id: String
Unique identifier for this audio response.
let transcript: String
Transcript of the audio generated by the model.
enum CodingKeys