openai_dart_dio 2.1.0
openai_dart_dio: ^2.1.0 copied to clipboard
| `openai_dart_dio` is a type-safe Dart library for interacting with the OpenAI API, built on the Dio HTTP client. It simplifies making requests to OpenAI services like GPT-3, DALL·E, and Codex, with [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add openai_dart_dio
With Flutter:
$ flutter pub add openai_dart_dio
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
openai_dart_dio: ^2.1.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:openai_dart_dio/openai_dart_dio.dart';