CompletionRequest constructor

CompletionRequest({
  1. String? model = 'text-davinci-003',
  2. required String prompt,
  3. double? temperature = 0.3,
  4. int? maxTokens = 50,
  5. double? topP = 0,
  6. double? presencePenalty = 0,
  7. List<String>? stop,
  8. int? n,
})

Implementation

CompletionRequest({
  this.model = 'text-davinci-003',
  required this.prompt,
  this.temperature = 0.3,
  this.maxTokens = 50,
  this.topP = 0,
  this.presencePenalty = 0,
  this.stop,
  this.n,
});