CreateAnswerRequest constructor

CreateAnswerRequest({
  1. required String model,
  2. required String question,
  3. List<List<String>> examples = const [],
  4. required String examplesContext,
  5. List<String>? documents = const [],
  6. String? file,
  7. String? searchModel = 'ada',
  8. int? maxRerank = 200,
  9. num? temperature = 0,
  10. int? logprobs,
  11. int? maxTokens = 16,
  12. CreateAnswerRequestStop? stop,
  13. int? n = 1,
  14. Object? logitBias,
  15. bool? returnMetadata = false,
  16. bool? returnPrompt = false,
  17. List<Object>? expand = const [],
  18. String? user,
})

Returns a new CreateAnswerRequest instance.

Implementation

CreateAnswerRequest({
  required this.model,
  required this.question,
  this.examples = const [],
  required this.examplesContext,
  this.documents = const [],
  this.file,
  this.searchModel = 'ada',
  this.maxRerank = 200,
  this.temperature = 0,
  this.logprobs,
  this.maxTokens = 16,
  this.stop,
  this.n = 1,
  this.logitBias,
  this.returnMetadata = false,
  this.returnPrompt = false,
  this.expand = const [],
  this.user,
});