ai_text_summary 1.1.1
ai_text_summary: ^1.1.1 copied to clipboard
A Dart package that summarizes long blocks of text into 3-line summaries using OpenAI.
example/example.dart
import 'package:ai_text_summary/ai_text_summary.dart';
void main() async {
// Replace with your actual OpenAI API key
final service = SummaryService(apiKey: 'your_api_key_here');
final inputText = '''
Dart is an open-source, general-purpose programming language.
It is originally developed by Google and later approved as a standard by ECMA.
Dart is used to build mobile, desktop, server, and web applications.
''';
final summary = await service.summarize(inputText);
print('Summary:\n$summary');
}