ai_text_summary 1.1.1 copy "ai_text_summary: ^1.1.1" to clipboard
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');
}
1
likes
160
points
66
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart package that summarizes long blocks of text into 3-line summaries using OpenAI.

Homepage

License

MIT (license)

Dependencies

http

More

Packages that depend on ai_text_summary