modify method
MODIFY A RUN
Implementation
Future<RunResponse?> modify(RunModifyDataModel threadsData)async{
Internet net = Internet();
try{
var data = {
"metadata" : threadsData.metadata
};
var res = await net.openAIAssitant(data, "threads/${threadsData.threadId}/runs/${threadsData.runId}", apiKey);
if(res.statusCode == 200){
var r = RunResponse.fromJson(jsonDecode(res.body));
return r;
}else{
return null;
}
}catch(e){
if (kDebugMode) {
print(e.toString());
}
return null;
}
}