SummaryService constructor

SummaryService({
  1. required String apiKey,
  2. String openAiEndpoint = 'https://api.openai.com/v1/chat/completions',
})

Creates a new instance of SummaryService.

Requires an apiKey for authentication. Optionally, an openAiEndpoint can be provided.

Implementation

SummaryService({
  required this.apiKey,
  this.openAiEndpoint = 'https://api.openai.com/v1/chat/completions',
});