GptChatCompletionRequest class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

GptChatCompletionRequest({required String model, required List<GptMessage> messages, int? temperature, String? user, bool? stream, int? frequencyPenalty, int? maxTokens, int? n, int? presencePenalty, int? topP})
GptChatCompletionRequest.fromJson(Map<String, dynamic> json)
factory

Properties

frequencyPenalty int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxTokens int?
getter/setter pair
messages List<GptMessage>
getter/setter pair
model String
getter/setter pair
n int?
getter/setter pair
presencePenalty int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream bool?
getter/setter pair
temperature int?
getter/setter pair
topP int?
getter/setter pair
user String?
getter/setter pair

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.
override

Operators

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