Pjq ChitChat Save

ChitChat is a simple chat application that utilizes the GPT-3.5 Turbo/GPT-4 model to provide an interactive chat experience.

Project README

Introducing ChitChat App 🎉

ChitChat is a powerful and easy-to-use app that allows you to connect with AI models such as GPT-3.5-turbo and GPT-4 for engaging and productive conversations. Here's what makes ChitChat your ultimate AI chat collaborator:

  • 💬 Multiple AI Models: Choose between gpt-3.5-turbo or GPT-4 for personalized and dynamic conversations.
  • 🌍 Internationalization Support: Supports i18n for effortless communication in multiple languages.
  • 🔊 Text-to-Speech & Speech-to-Text: Seamlessly convert text to speech and vice versa for a hands-free experience.
  • 📜 Multi-line Input: Easily paste or input multiple lines of text.
  • 📡 Multi-channel Chat: Engage in conversations across different channels.
  • 📚 Prompt Management: Add, edit, and manage multiple prompts.
  • 🎯 API Integration: Utilizes stream=true API call for fast, efficient interactions.
  • 📝 Markdown & Rich Text: Enjoy Markdown support for enhanced text formatting.
  • 🚀 Advanced Featuresq: Chat history persistence, proxy settings, continuous conversation mode, base URL settings, and more.
  • 🔄 Translation & Rephrasing: Built-in translation and rephrase actions for instant multilingual support.
  • 📤 Easy Sharing: Conveniently copy or share your conversations with others.

Discover the power of engaging, AI-driven conversations with ChitChat App! Download now and start chatting! 🚀

It is built with Flutter and supports platforms

  • Android
  • iOS
  • Web
  • Mac OS X
  • Linux
  • Windows

Downloads

For Mac/Android, You can download in from the release builds

For Android, you can also download from Google Play

Watch the video

Watch the video

Usage

When you launch the application, you will be taken to the chat screen where you can enter text to send to the GPT-3.5 Turbo model. The model will then generate a response that will be displayed in the chat window.

You can also access the settings screen by tapping on the settings icon in the app bar. Here, you can set the OpenAI API key, prompt string, and temperature value.

To copy or share a chat message, simply click on the message and select the appropriate action from the context menu.

To translate a chat message, click on the message and select the "Translate" option. This will open the Google Translate app, where you can choose the language to translate to.

Contributing

Contributions are welcome and appreciated. To contribute to ChatGPT, follow these steps:

  1. Fork this repository.
  2. Create a new branch for your changes.
  3. Make your changes and commit them, with clear commit messages.
  4. Push your changes to your fork.
  5. Open a pull request.

License

It is licensed under the MIT license. See LICENSE for more information.

Release command

git tag 1.0.0-mac && git push origin 1.0.0-mac
git tag 1.0.0-android && git push origin 1.0.0-android

Or delete tag and push again

git tag -d 1.1.1-mac &&  git push origin --delete 1.1.1-mac &&  git tag 1.1.1-mac && git push origin 1.1.1-mac
echo " git tag -d 1.1.1-mac &&  git push origin --delete 1.1.1-mac &&  git tag 1.1.1-mac && git push origin 1.1.1-mac" | sed "s/mac/android/g" | sed "s/1.1.1/1.1.2/g"

Or with one command line

CURRENT_VERSION=1.2.2 && PLATFORM=mac &&  git tag $CURRENT_VERSION-$PLATFORM && git push origin $CURRENT_VERSION-$PLATFORM && PLATFORM=android && git tag $CURRENT_VERSION-$PLATFORM && git push origin $CURRENT_VERSION-$PLATFORM

If already exists, then run can run it again.

CURRENT_VERSION=1.2.2 && PLATFORM=mac && git tag -d $CURRENT_VERSION-$PLATFORM && git push origin :refs/tags/$CURRENT_VERSION-$PLATFORM && git tag $CURRENT_VERSION-$PLATFORM && git push origin $CURRENT_VERSION-$PLATFORM && PLATFORM=android && git tag -d $CURRENT_VERSION-$PLATFORM && git push origin :refs/tags/$CURRENT_VERSION-$PLATFORM && git tag $CURRENT_VERSION-$PLATFORM && git push origin $CURRENT_VERSION-$PLATFORM

Build dmg for Mac

flutter build macos --release
hdiutil create -format UDZO -srcfolder build/macos/Build/Products/Release/chitchat.app build/macos/Build/Products/Release/chitchat.dmg

Then you can get the dmg file in build/macos/Build/Products/Release/chitchat.dmg

Build apk for Android

flutter build apk  --release
flutter build appbundle  --release

Then you can find the apk/aab file in build/app/outputs/flutter-apk/*.apk,build/app/outputs/bundle/release/*.aab

Build for web

flutter build web 

And the web files will be in

build/web

And update the base href in build/web/index.html to "./"

<base href="./">

Deploy the website

cp -a build/web website/
scp -r website/* ${host}:/mnt/backup_ssf/chitchat/

Build & Deploy Script

./deploy.sh user host

Generate l10n by Call GPT 3.5 Turbo API

flutter gen-l10n  -v 
cd lib/l10n
python3 ../../tools/l10n.py --file app_en.arb;

If need to regenerate the full translation, please add --full_translation, otherwise it will only generate the new strings.

cd lib/l10n
python3 ../../tools/l10n.py --file app_en.arb --full_translation;

Screenshots

Mac/iOS/Android Screenshot Screenshot of Chat Screen Screenshot of Settings Screen Screenshot of Actions Menu

Getting Started

To get started with ChitChat, clone this repository to your local machine and open it in your preferred IDE. Then, run the following command in the terminal to download the required dependencies:

flutter pub get

To run the application, connect your device or emulator and run the following command:

flutter run

To run on iPhone, need add --release

 flutter run --release

Getting Started for Flutter

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.

Open Source Agenda is not affiliated with "Pjq ChitChat" Project. README Source: pjq/ChitChat
Stars
28
Open Issues
0
Last Commit
1 month ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating