openai_dart_dio 2.1.0 copy "openai_dart_dio: ^2.1.0" to clipboard
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';
2
likes
130
points
59
downloads

Publisher

unverified uploader

Weekly Downloads

| `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 automatic JSON serialization and robust error handling. The library ensures a streamlined and efficient integration, offering strong type safety and easy-to-use API calls for Dart and Flutter developers.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

copy_with_extension, dio, equatable, equatable_annotations, fetch_client, http, json_annotation, pretty_dio_logger

More

Packages that depend on openai_dart_dio