Skip to content

A flutter package for the OpenAI GPT-3 API, written in DART.

License

Notifications You must be signed in to change notification settings

Multi-Tech-s-r-l/openai_gpt3_dart_api

 
 

Repository files navigation

openai_gpt3_api

A wrapper for the HTTP calls to the OpenAI API for the language model GPT-3.

Installing

Add this line to your package's pubspec.yaml

dependencies:
  openai_gpt3_api:
    git:
      url: https://github.com/morriskurz/openai_gpt3_dart_api

Now in your Dart code, you can use:

import 'package:openai_gpt3_api/openai_gpt3_api.dart';

Using the API

To use the API, simply initialize the GPT3 object in your code

var api = GPT3(<YOUR_API_KEY>);

and then call the endpoint you want to use, e.g.

var result = await api.search(...);
var result = await api.completion(...);
var result = await api.classification(...);
var result = await api.answer(...);

About

A flutter package for the OpenAI GPT-3 API, written in DART.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%