CompletionApiParameters constructor

CompletionApiParameters(
  1. String prompt, {
  2. int maxTokens = 16,
  3. num temperature = 1,
  4. num topP = 1,
  5. int n = 1,
  6. bool stream = false,
  7. int? logprobs,
  8. bool echo = false,
  9. String? stop,
  10. num presencePenalty = 0,
  11. num frequencyPenalty = 0,
  12. int bestOf = 1,
  13. Map<String, num>? logitBias,
})

Implementation

CompletionApiParameters(this.prompt,
    {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});