CreateCompletionRequest constructor
CreateCompletionRequest({
- required String model,
- CreateCompletionRequestPrompt? prompt,
- String? suffix,
- int? maxTokens = 16,
- num? temperature = 1,
- num? topP = 1,
- int? n = 1,
- bool? stream = false,
- int? logprobs,
- bool? echo = false,
- CreateCompletionRequestStop? stop,
- num? presencePenalty = 0,
- num? frequencyPenalty = 0,
- int? bestOf = 1,
- Object? logitBias,
- 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,
});