Choices class

Constructors

Choices({required String text, required int index, int? logprobs, required String finishReason})
Choices.fromMap(Map<String, dynamic> map)
Create the object from a Map<String, dynamic>
factory

Properties

finishReason String
In case of the response need to stop, here will be the awnser to why it stop.
final
hashCode int
The hash code for this object.
no setterinherited
index int
Index of the present text on the list
final
logprobs int?
Include the log probabilities on the logprobs most likely tokens, as well the chosen tokens. For example, if logprobs is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to logprobs+1 elements in the response.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text requested
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the object to a Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited