Skip to content

A simple yet fully functional chatbot integrated with OpenAI's gpt-4o-mini model.

Notifications You must be signed in to change notification settings

libresoul/gpt_flutter

Repository files navigation

gpt_flutter

A simple chatbot integrated with OpenAI's magic

Getting Started

Make sure you have done installing all the prerequisites for flutter development. If not, you can follow the instructions here.

Installing dependencies

All the dependencies are listed in the pubspec.yaml file. You can install them by running the following command your terminal:

flutter pub get

Setting up API keys

Get your OpenAI api key here and set it in the lib/env/.env file.

OPENAI_API_KEY=your_key

Generating files

Run the build runner to generate the necessary files:

flutter pub run build_runner build --delete-conflicting-outputs

Running the app

You can run the app on an emulator or a physical device by executing the following command in your terminal. Make sure to mention the device id if you have multiple devices connected.:

flutter run -d <device_id>

Building the app

You can build the app for any platform mentioned here by running the following command in your terminal:

flutter build <platform>

Make sure to follow the instructions for each platform mentioned in the flutter documentation.

About

A simple yet fully functional chatbot integrated with OpenAI's gpt-4o-mini model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published