listFiles method
LIST ALL FILES ATTACHED TO AN ASSISTANT
Implementation
Future<AssistantFileList?> listFiles(String assistantID)async{
Internet net = Internet();
try{
var res = await net.openAIAssitantGET("assistants/$assistantID/files", apiKey);
if(res.statusCode == 200){
var r = AssistantFileList.fromJson(jsonDecode(res.body));
return r;
}else{
return null;
}
}catch(e){
if (kDebugMode) {
print(e.toString());
}
return null;
}
}