modify method
CREATE ASSISTANT
Implementation
Future<AssistantModel?> modify(AssistantModel assistantData)async{
Internet net = Internet();
try{
var res = await net.openAIAssitant(assistantData.toJson(), "assistants/${assistantData.id}", apiKey);
if(res.statusCode == 200){
var r = AssistantModel.fromJson(jsonDecode(res.body));
return r;
}else{
return null;
}
}catch(e){
print(e.toString());
return null;
}
}