ChatCompletionStreamResponseDeltaAudio class
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
- Annotations
-
- @freezed
Constructors
- ChatCompletionStreamResponseDeltaAudio({@JsonKey(includeIfNull: false) String? id, @JsonKey(name: 'expires_at', includeIfNull: false) int? expiresAt, @JsonKey(includeIfNull: false) String? data, @JsonKey(includeIfNull: false) String? transcript})
-
Factory constructor for ChatCompletionStreamResponseDeltaAudio
constfactory
-
ChatCompletionStreamResponseDeltaAudio.fromJson(Map<
String, dynamic> json) -
Object construction from a JSON representation
factory
Properties
-
copyWith
→ $ChatCompletionStreamResponseDeltaAudioCopyWith<
ChatCompletionStreamResponseDeltaAudio> -
Create a copy of ChatCompletionStreamResponseDeltaAudio
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 ChatCompletionStreamResponseDeltaAudio 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