create method
Creates a new Completions
instance.
Implementation
Future<CompletionsResponse> create(CompletionsRequest request) async {
final response = await _client.post(
'/openai/deployments/${request.deploymentId}/chat/completions',
data: request.toJson(),
);
return CompletionsResponse.fromJson(
jsonDecode(response.body) as Map<String, dynamic>,
);
}