Giter Club home page Giter Club logo

pocket-ai's Introduction

pocket_ai

OpenAI GPT-3.5 powered free chatbot android app in Flutter similar to Chat-GPT

Android App

visitors

Features

  1. Open-ended conversation with AI Chatbot powered by gpt-3.5-turbo model
  2. Bot can respond to many queries e.g. Summarize content, translate to other languages, factual answers, draft emails, help in programming, etc
  3. Bot remembers the last 2 sets of conversations so context is maintained while chatting
  4. Users can generate content e.g. poems, quotes, thoughts etc using AI and share on social media
  5. A settings screen to set the OpenAI API key, word limit, signature for generated content.
  6. Copy chat messages functionality

Screenshots

Conversation with bot - 1 Conversation with bot - 2
Settings Screen Content Generator Screen
Todos Manager Screen 1 AI Forum

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Useful commands

Flutter setup: https://docs.flutter.dev/get-started/install/macos

  1. To create a new flutter app flutter create my_app
  2. To check missing dependencies flutter doctor -v
  3. List emulators $ANDROID_HOME/emulator/emulator -list-avds
  4. Start an emulator $ANDROID_HOME/emulator/emulator @1536_1024_device
  5. Check if devices are runnning flutter devices
  6. Run app flutter run
  7. To install any package flutter pub add <package_name> or flutter pub add -d change_app_package_name
  8. Run in release mode flutter run --release
  9. Build release apk flutter build apk
  10. Generate upload key in android/app keytool -genkey -v -keystore upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload -storetype JKS
  11. Check fingerprint keytool -list -v -keystore ./android/app/upload-keystore.jks -alias upload
  12. Change package name flutter pub add -d change_app_package_name && flutter pub run change_app_package_name:main me.varunon9.pocket_ai
  13. Update launcher icon flutter pub add -d flutter_launcher_icons && flutter pub run flutter_launcher_icons:main
  14. Build releas bundle flutter build appbundle

Documentation & Resources-

  1. Update launcher icon: https://pub.dev/packages/flutter_launcher_icons
  2. Integrate Firebase: https://firebase.google.com/docs/flutter/setup?platform=ios
  3. Firebase Analytics: https://firebase.google.com/docs/analytics/get-started?platform=flutter
  4. Firebase Crashlytics: https://firebase.google.com/docs/crashlytics/get-started?platform=flutter
  5. Firebase Firestore: https://firebase.google.com/docs/firestore/quickstart#dart
  6. Release android app: https://docs.flutter.dev/deployment/android
  7. OpenAI API docs: https://platform.openai.com/docs/introduction/overview
  8. Chat-GPT APIs: https://openai.com/blog/introducing-chatgpt-and-whisper-apis

Use your own Firebase project

  1. Login to firebase: firebase login
  2. Select project: flutterfire configure

How to get your Open AI API key

  1. Signup https://beta.openai.com/signup
  2. Visit https://beta.openai.com/account/api-keys and create free API key ($18 credit for 3 months)
  3. Check API key usage: https://platform.openai.com/account/usage
  4. Setup usage limits: https://platform.openai.com/account/billing/limits

pocket-ai's People

Contributors

varunon9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pocket-ai's Issues

String Obfuscation

Hey there, I wonder if you tried to obfuscate constant strings such as the URL to OpenAI API when composing the APK file for publishing?

PlaystoreApp not same as the Code

Hi,
first, thanks for the Code sharing, but you should mention that your Playstore App Version is not the same as the code here!

As it looks below, your application sends the Querries to you, but i can't find this part in your query code. so it would be fair to communicate this openly.
Screenshot_20230318-193424

my2cents

Wrapper issue

Task 'wrapper' not found in project ':app'.

  • Try:

Run gradle tasks to get a list of available tasks.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

setting to configure completions API endpoint

i'm using llama-cpp-python[server] to run an OpenAI compatible chat/completions endpoint. it runs at http://127.0.0.1:8000/v1 generally. this is working well with other (desktop) clients such as BetterChatGPT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.