OpenAIStreamChatCompletionChoiceModel class final
The OpenAIStreamChatCompletionChoiceModel class represents the chat completion choice response model of the OpenAI API, which is used and get returned while using the chat methods that leverages Stream functionality.
Constructors
- OpenAIStreamChatCompletionChoiceModel({required int index, required OpenAIStreamChatCompletionChoiceDeltaModel delta, required String? finishReason})
-
The OpenAIStreamChatCompletionChoiceModel class represents the chat completion choice response model of the OpenAI API, which is used and get returned while using the chat methods that leverages Stream functionality.
const
-
OpenAIStreamChatCompletionChoiceModel.fromMap(Map<
String, dynamic> json) -
The OpenAIStreamChatCompletionChoiceModel class represents the chat completion choice response model of the OpenAI API, which is used and get returned while using the chat methods that leverages Stream functionality.
factory
Properties
- delta → OpenAIStreamChatCompletionChoiceDeltaModel
-
The delta of the choice.
final
- finishReason → String?
-
The finishReason of the choice.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- index → int
-
The index of the choice.
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 ==(
Object other) → bool -
The equality operator.
override