CompletionApiParameters class

Annotations
  • @JsonSerializable.new(createFactory: false)

Constructors

CompletionApiParameters(String prompt, {int maxTokens = 16, num temperature = 1, num topP = 1, int n = 1, bool stream = false, int? logprobs, bool echo = false, String? stop, num presencePenalty = 0, num frequencyPenalty = 0, int bestOf = 1, Map<String, num>? logitBias})

Properties

bestOf → int
final
echo → bool
final
frequencyPenalty → num
final
hashCode → int
The hash code for this object.
no setterinherited
logitBias → Map<String, num>?
final
logprobs → int?
final
maxTokens → int
final
n → int
final
presencePenalty → num
final
prompt → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stop → String?
final
stream → bool
final
temperature → num
final
topP → num
final

Methods

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

Operators

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