zeroShotClassification method
Future<List>
zeroShotClassification(
{ - required List inputs,
- required dynamic parameters,
- required String model,
- dynamic options,
})
Implementation
Future<List<dynamic>> zeroShotClassification(
{required List<dynamic> inputs,
required dynamic parameters,
required String model,
dynamic options}) async {
Map<String, dynamic> queryParams = {
'inputs': inputs,
'parameters': parameters
};
if (options != null) {
queryParams.addAll(options);
}
final response = await httpService.makeRequest(queryParams, model);
handleHttpError(response);
dynamic decodedResponse = json.decode(response.body);
return decodedResponse;
}