CreateCompletionRequest constructor

CreateCompletionRequest({
  1. required String model,
  2. CreateCompletionRequestPrompt? prompt,
  3. String? suffix,
  4. int? maxTokens = 16,
  5. num? temperature = 1,
  6. num? topP = 1,
  7. int? n = 1,
  8. bool? stream = false,
  9. int? logprobs,
  10. bool? echo = false,
  11. CreateCompletionRequestStop? stop,
  12. num? presencePenalty = 0,
  13. num? frequencyPenalty = 0,
  14. int? bestOf = 1,
  15. Object? logitBias,
  16. String? user,
})

Returns a new CreateCompletionRequest instance.

Implementation

CreateCompletionRequest({
  required this.model,
  this.prompt,
  this.suffix,
  this.maxTokens = 16,
  this.temperature = 1,
  this.topP = 1,
  this.n = 1,
  this.stream = false,
  this.logprobs,
  this.echo = false,
  this.stop,
  this.presencePenalty = 0,
  this.frequencyPenalty = 0,
  this.bestOf = 1,
  this.logitBias,
  this.user,
});