LogProb class
- Annotations
-
- @freezed
Constructors
-
LogProb.new({List<
String> ? tokens, @JsonKey(name: "token_logprobs") List<double> ? tokenLogprobs, @JsonKey(name: "top_logprobs") List<Map< ? topLogprobs, @JsonKey(name: "text_offset") List<String, double> >int> ? textOffset}) -
Log probabilities for completion. It will be not
null
, if thelogprobs
input is not zero.constfactory -
LogProb.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $LogProbCopyWith<
LogProb> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
textOffset
→ List<
int> ? -
no setterinherited
-
tokenLogprobs
→ List<
double> ? -
no setterinherited
-
tokens
→ List<
String> ? -
no setterinherited
-
topLogprobs
→ List<
Map< ?String, double> > -
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