Chat bot made using Flutter, Open AI GPT 3.5 APIs and Firebase
- Clone the repository
git clone git@github.com:AlphaArtrem/flutter_chat_bot.git
- Create an account on Firebase
- Setup Firebase Core
- Setup Firebase Auth
- Setup Cloud Firestore
- Setup Google Sign In
- Add your SHA-256 and SHA-1 key to project seeting in firebase. To generate keys follow these steps
- Setup firebase with
com.example.chatgpt
project
flutterfire configure
- Create an account on OpenAI and get API keys form here
- Create an account on Mailersend, get API kesy from here and verfiy a domain or use the default free one from here
- Make sure
config/config.json
exists with the following keys
{
"mailerSendBearerToken": "MAILER_SEND_BEARER_TOKEN",
"appName" : "ChatGPT",
"openAIAPIKey": "OPEN_AI_API_KEY",
"mailerSendVerifiedDomain" : "MAILER_SEND_VERIFIED_DOMAIN"
}
- Fetch pub dependencies for Flutter and run the app.
flutter pub get
flutter run --dart-define-from-file=configs/config.json
- Build project
flutter build apk --release --dart-define-from-file=configs/config.json
flutter build ipa --release --dart-define-from-file=configs/config.json