ClassificationApiParameters constructor
ClassificationApiParameters(})
Implementation
ClassificationApiParameters(this.model, this.query,
{this.examples,
this.file,
this.labels,
this.searchModel = 'ada',
this.temperature = 0,
this.logprobs,
this.maxExamples = 200,
this.logitBias,
this.returnPrompt = false,
this.returnMetadata = false,
this.expand}) {
if (examples == null && file == null) {
throw ArgumentError(
'Either the examples argument or the file argument needs to be provided.');
}
if (examples != null && file != null) {
throw ArgumentError(
'You can only provide the examples or the file argument, but not both.');
}
}