Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Mate

Chat Mate is a Flutter AI chatbot app that allows users to interact with two different AI models: Gemini and Claude. Gemini is used in the Gemini tab for responses to user prompts, while Claude, from the Anthropic API, is used in the ChatGPT tab due to ChatGPT API keys not being available for free.

Features

  • Authentication via Google account
  • Gemini tab: Uses the Gemini API for AI responses. Responses are received as streams, providing faster interaction.
  • ChatGPT tab: Uses Claude from the Anthropic API for AI responses. Note that this option was chosen because the ChatGPT API key was not available for free, unlike the Gemini API.

Installation

  1. Clone the repository
  2. Run flutter pub get
  3. Configure Firebase for authentication and Firestore for database (details in firebase_core and cloud_firestore packages documentation)
  4. Get API keys for Gemini and Anthropic (Claude) and replace them in the code

Packages Used

  • cupertino_icons
  • intl
  • google_fonts
  • animated_text_kit
  • flutter_svg
  • local_hero
  • firebase_core
  • cloud_firestore
  • firebase_auth
  • flutter_glow
  • google_sign_in
  • flutter_riverpod
  • google_generative_ai
  • formatted_text
  • cached_network_image
  • shimmer
  • loading_animation_widget
  • dio
  • flutter_native_splash

Screenshots

Authentication Screen Start Screen Profile Detail ChatGPT Tab Gemini Tab

Demo

Demo

Notes

  • The formatted_text package is used to format the response received from the AI models.
  • Gemini responses are received as streams, providing faster interaction compared to Claude, where responses are returned only after they are completed.

About

Chat Mate is a Flutter AI chatbot app that allows users to interact with two different AI models: Gemini and Claude. The app features an authentication screen where users can log in using their Google account. The chat screen contains two tabs: Gemini tab and ChatGPT tab.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages