A simple chatbot integrated with OpenAI's magic
Make sure you have done installing all the prerequisites for flutter development. If not, you can follow the instructions here.
All the dependencies are listed in the pubspec.yaml
file. You can install them by running the following command your terminal:
flutter pub get
Get your OpenAI api key here and set it in the lib/env/.env
file.
OPENAI_API_KEY=your_key
Run the build runner to generate the necessary files:
flutter pub run build_runner build --delete-conflicting-outputs
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>
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.