ChatRequest constructor

ChatRequest({
  1. String? model = 'gpt-3.5-turbo',
  2. required List<ChatMessage> messages,
  3. double? temperature = 0.3,
  4. int? maxTokens = 50,
  5. double? topP = 0,
  6. double? presencePenalty = 0,
})

Implementation

ChatRequest({
  this.model = 'gpt-3.5-turbo',
  required this.messages,
  this.temperature = 0.3,
  this.maxTokens = 50,
  this.topP = 0,
  this.presencePenalty = 0,
});