CompleteText class

Constructors

CompleteText({required String prompt, required Model model, double temperature = .3, int maxTokens = 100, double topP = 1.0, double frequencyPenalty = .0, double presencePenalty = .0, List<String>? stop})
CompleteText.fromJson(Map<String, dynamic> json)
factory

Properties

frequencyPenalty double
final
hashCode int
The hash code for this object.
no setterinherited
maxTokens int
final
model Model
completion models
final
presencePenalty double
final
prompt String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stop List<String>?
example use it
final
temperature double
final
topP double
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