chat_gpt_api 1.0.2 copy "chat_gpt_api: ^1.0.2" to clipboard
chat_gpt_api: ^1.0.2 copied to clipboard

Chat GPT wrapper for flutter apps witten in dart languange. Initial release supports Text Completeion, Code Completion and Image Generation

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add chat_gpt_api

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  chat_gpt_api: ^1.0.2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:chat_gpt_api/app/api/api.dart';
import 'package:chat_gpt_api/app/chat_gpt.dart';
import 'package:chat_gpt_api/app/model/data_model/completion/completion.dart';
import 'package:chat_gpt_api/app/model/data_model/completion/completion_request.dart';
import 'package:chat_gpt_api/app/model/data_model/image/image_request.dart';
import 'package:chat_gpt_api/app/model/data_model/image/images.dart';
import 'package:chat_gpt_api/app/model/models.dart';
import 'package:chat_gpt_api/chat_gpt.dart';
32
likes
130
pub points
63%
popularity

Publisher

verified publisherleyo.dev

Chat GPT wrapper for flutter apps witten in dart languange. Initial release supports Text Completeion, Code Completion and Image Generation

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio, flutter

More

Packages that depend on chat_gpt_api