CodingKeys
ChatResult.swift:101enum CodingKeys
enum CodingKeys
s6OpenAI10ChatResultV6ChoiceV7MessageV5AudioV10CodingKeysO
What are these?19PDR
import OpenAI
struct Audio
struct ChatResult
struct Choice
struct Message
case data
case expiresAt
case id
case transcript
init(from decoder: any Decoder) throws
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.
protocol CodingKey : CustomDebugStringConvertible, CustomStringConvertible, Sendable
A type that can be used as a key for encoding and decoding.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(intValue: Int)
init?(rawValue: String)
init?(stringValue: String)
var debugDescription: String { get }
A textual representation of this key, suitable for debugging.
var description: String { get }
A textual representation of this key.
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)