LogProb class

Annotations
  • @freezed

Constructors

LogProb({List<String>? tokens, @JsonKey(name: "token_logprobs") List<double>? tokenLogprobs, @JsonKey(name: "top_logprobs") List<Map<String, double>>? topLogprobs, @JsonKey(name: "text_offset") List<int>? textOffset})
Log probabilities for completion. It will be not null, if the logprobs input is not zero.
const
factory
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