EditRequest class

Annotations
  • @freezed

Constructors

EditRequest({required String instruction, String? model, String? input, int? n, double? temperature, @JsonKey(name: 'top_p') double? topP})
const
factory
EditRequest.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $EditRequestCopyWith<EditRequest>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
input String?
The input text to use as a starting point for the edit.
no setterinherited
instruction String
The instruction that tells the model how to edit the prompt.
no setterinherited
model String?
ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
no setterinherited
n int?
How many edits to generate for the input and instruction.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
temperature double?
What sampling temperature to use. Higher values means the model will take more risks.
no setterinherited
topP 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