CreateAnswerRequest constructor
CreateAnswerRequest({
- required String model,
- required String question,
- List<
List< examples = const [],String> > - required String examplesContext,
- List<
String> ? documents = const [], - String? file,
- String? searchModel = 'ada',
- int? maxRerank = 200,
- num? temperature = 0,
- int? logprobs,
- int? maxTokens = 16,
- CreateAnswerRequestStop? stop,
- int? n = 1,
- Object? logitBias,
- bool? returnMetadata = false,
- bool? returnPrompt = false,
- List<
Object> ? expand = const [], - 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,
});