retrieveContainer method
Retrieve a single container by ID.
Implementation
Future<Container> retrieveContainer(String containerId) async {
final resp = await httpClient.get(
_resolve('/containers/$containerId'),
headers: getHeaders({}) ?? {},
);
if (resp.statusCode == 200) {
return Container.fromJson(jsonDecode(resp.body) as Map<String, dynamic>);
}
throw OpenAIRequestException.fromHttpResponse(resp);
}