CreateClassificationRequest constructor

CreateClassificationRequest({
  1. required String model,
  2. required String query,
  3. List<List<String>>? examples = const [],
  4. String? file,
  5. List<String>? labels = const [],
  6. String? searchModel = 'ada',
  7. num? temperature = 0,
  8. int? logprobs,
  9. int? maxExamples = 200,
  10. Object? logitBias,
  11. bool? returnPrompt = false,
  12. bool? returnMetadata = false,
  13. List<Object>? expand = const [],
  14. String? user,
})

Returns a new CreateClassificationRequest instance.

Implementation

CreateClassificationRequest({
  required this.model,
  required this.query,
  this.examples = const [],
  this.file,
  this.labels = const [],
  this.searchModel = 'ada',
  this.temperature = 0,
  this.logprobs,
  this.maxExamples = 200,
  this.logitBias,
  this.returnPrompt = false,
  this.returnMetadata = false,
  this.expand = const [],
  this.user,
});