OpenAIChatCompletionChoiceModel class final
This class represents a choice of the OpenAIChatCompletionModel model of the OpenAI API, which is used and get returned while using the OpenAIChat
methods.
Constructors
- OpenAIChatCompletionChoiceModel({required int index, required OpenAIChatCompletionChoiceMessageModel message, required String? finishReason})
-
This class represents a choice of the OpenAIChatCompletionModel model of the OpenAI API, which is used and get returned while using the
OpenAIChat
methods.const -
OpenAIChatCompletionChoiceModel.fromMap(Map<
String, dynamic> json) -
This is used to convert a Map<String, dynamic> object to a OpenAIChatCompletionChoiceModel object.
factory
Properties
- 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
- message → OpenAIChatCompletionChoiceMessageModel
-
The message 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
-
toMap(
) → Map< String, dynamic> - This method used to convert the OpenAIChatCompletionChoiceModel to a Map<String, dynamic> object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override