openai_gpt3_api

Last updated:

0 purchases

openai_gpt3_api Image
openai_gpt3_api Images
Add to Cart

Description:

openai gpt3 api

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
copied to clipboard
Now in your Dart code, you can use:
import 'package:openai_gpt3_api/openai_gpt3_api.dart';
copied to clipboard
Using the API #
To use the API, simply initialize the GPT3 object in your code
var api = GPT3(<YOUR_API_KEY>);
copied to clipboard
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(...);
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.