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})
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 chat completion have at least one choice in choices.
no setter
id String
The ID 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

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