OpenAIStreamCompletionModel class final

This class is used to represent an OpenAI stream completion.

Annotations
  • @immutable

Constructors

OpenAIStreamCompletionModel({required String id, required DateTime created, required List<OpenAIStreamCompletionModelChoice> choices, required String model, required String? systemFingerprint})
This class is used to represent an OpenAI stream completion.
const
OpenAIStreamCompletionModel.fromMap(Map<String, dynamic> json)
This class is used to represent an OpenAI stream completion. This method is used to convert a Map<String, dynamic> object to a OpenAIStreamCompletionModel object.
factory

Properties

choices List<OpenAIStreamCompletionModelChoice>
The choices generated by the completion.
final
created DateTime
The date the completion was created.
final
hashCode int
The hash code for this object.
no setteroverride
haveChoices bool
Weither the completion have at least one choice in choices.
no setter
haveSystemFingerprint bool
Weither the completion have a system fingerprint.
no setter
id String
The identifier of the completion.
final
model String
The model used to generate the completion.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemFingerprint String?
The system fingerprint of the completion.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(covariant OpenAIStreamCompletionModel other) bool
The equality operator.
override