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