openAIAssitantGET method
MAKE A POST REQUEST
Implementation
Future openAIAssitantGET(endpoint, apiKey) async{
var url = Uri.parse('https://api.openai.com/v1/$endpoint');
var response = await http.get(url,
headers: {
"Authorization" : "Bearer $apiKey",
"Content-Type" : "application/json; charset=UTF-8",
"OpenAI-Beta" : "assistants=v1"
}
);
return response;
}