TopLogProb class
Top alternative token with log probability.
- Annotations
-
- @immutable
Constructors
-
TopLogProb({required String token, required double logprob, List<
int> ? bytes}) -
Creates a TopLogProb.
const
-
TopLogProb.fromJson(Map<
String, dynamic> json) -
Creates a TopLogProb from JSON.
factory
Properties
Methods
-
copyWith(
{String? token, double? logprob, Object? bytes = unsetCopyWithValue}) → TopLogProb - Creates a copy with replaced values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts to JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override