uploadFile method
Upload an file with some purpouse ex: fine-tune, search. the model to updated file, its need to be a JsonL, a json that contains a json with prompt and conpletion map in every line {"prompt": "
Implementation
Future<FileData> uploadFile(
{required File file, required String purpose}) async {
try {
_checkApi(values: [purpose]);
final result = await service.uploadFile(
apiKey: _apiKey, file: file, purpose: purpose);
return result;
} catch (e) {
throw _exceptionCheck(e);
}
}