chatgpt_api_client 1.0.4
chatgpt_api_client: ^1.0.4 copied to clipboard
the chatgpt api client base on openai api , you can use your own apikey to ask chatgpt questions
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add chatgpt_api_client
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
chatgpt_api_client: ^1.0.4
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:chatgpt_api_client/chatgpt_api_client.dart';