ChatCompletionRequest class

Annotations
  • @JsonSerializable.new(fieldRename: FieldRename.snake)

Constructors

ChatCompletionRequest({ChatGptModel model = ChatGptModel.gpt4, required List<Message> messages, double? temperature = 0, double? topP, int? n, bool? stream, String? stop, int? maxTokens = 16})
ChatCompletionRequest.fromJson(Map<String, dynamic> data)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
maxTokens int?
final
messages List<Message>
final
model ChatGptModel
final
n int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stop String?
final
stream bool?
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