CompletionChoice class
- Annotations
-
- @freezed
Constructors
- CompletionChoice.new({String? text, int? index, @JsonKey(name: "logprobs") LogProb? logProbs, @JsonKey(name: "finish_reason") String? finishReason})
-
The generated result for from completion prompt.
constfactory
-
CompletionChoice.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $CompletionChoiceCopyWith<
CompletionChoice> -
no setterinherited
- finishReason → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int?
-
no setterinherited
- logProbs → LogProb?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited