ConfigEdits class

Constructors

ConfigEdits({bool isText = true, int? n = 1, double? temperature = 1, int? topP = 1})
ConfigEdits.fromMap(Map<String, dynamic> map)
Create the object from a Map<String, dynamic>
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isText bool
the APi provide Edits to code or to text, this field help us to chose the right model
final
model String
Give the right model based on the field isText, the model is used to config the api
no setter
n int?
How many completions to generate for each prompt.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
temperature double?
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
final
topP int?
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
final

Methods

copyWith({bool? isText, int? n, double? temperature, int? topP}) ConfigEdits
Generate a new ConfigEdits object from the original object.
getModel() String
returns a model based on the field isText
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the object to a Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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