gpt_3_dart 0.0.1 copy "gpt_3_dart: ^0.0.1" to clipboard
gpt_3_dart: ^0.0.1 copied to clipboard

Unofficial Dart package for OpenAI's GPT-3 API.

gpt_3_dart #

A simple Dart package to use with OpenAI's GPT-3 API.

Installation #

dependencies:
  flutter:
    sdk: flutter
  gpt_3_dart:

Usage #

import 'package:gpt_3_dart/gpt_3_dart.dart';

void main() async {
  OpenAI openAI = new OpenAI(apiKey: "YOUR_KEY_HERE");
  String complete = await openAI.complete("This is a test.", 10);
  List search = await openAI
      .search(["White House", "hospital", "school"], "the president");
  print(complete);
  print(search);
}

Example App #

Text Completion Semantic Search
19
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Unofficial Dart package for OpenAI's GPT-3 API.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http, meta

More

Packages that depend on gpt_3_dart