getCompletion method
get a completion as CompletionResponse object
Implementation
Future<CompletionResponse> getCompletion(String prompt) async {
try {
_checkApi(values: [prompt]);
final response = await service.getCompletion(
prompt: prompt, apiKey: _apiKey, config: _configCompletion);
return response;
} catch (e) {
throw _exceptionCheck(e);
}
}