ChatCompletionAssistantMessageAudio class

If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.

Annotations
  • @freezed

Constructors

ChatCompletionAssistantMessageAudio.new({required String id, @JsonKey(name: 'expires_at') required int expiresAt, required String data, required String transcript})
Factory constructor for ChatCompletionAssistantMessageAudio
const
factory
ChatCompletionAssistantMessageAudio.fromJson(Map<String, dynamic> json)
Object construction from a JSON representation
factory

Properties

copyWith → $ChatCompletionAssistantMessageAudioCopyWith<ChatCompletionAssistantMessageAudio>
Create a copy of ChatCompletionAssistantMessageAudio with the given fields replaced by the non-null parameter values.
no setterinherited
data String
Base64 encoded audio bytes generated by the model, in the format specified in the request.
no setterinherited
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.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this audio response.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transcript String
Transcript of the audio generated by the model.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ChatCompletionAssistantMessageAudio to a JSON map.
inherited
toMap() Map<String, dynamic>
Map representation of object (not serialized)
toString() String
A string representation of this object.
inherited
validateSchema() String?
Perform validations on the schema property values

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

propertyNames → const List<String>
List of all property names of schema