Skip to content

buildbyabhi/gemini-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 GeminiChat

React Vite Gemini API

A stunning ChatGPT-style AI chatbot powered by Google Gemini 2.0 Flash. Features real-time streaming responses, markdown rendering, syntax highlighting, and conversation history. ⚡

Live DemoReport BugRequest Feature


🌟 About The Project

GeminiChat is a fast and responsive AI chatbot clone built to interact with Google's latest Gemini 2.0 Flash model. It demonstrates how to handle readable streams in the browser to create a typewriter-style response effect, identical to ChatGPT.

✨ Features

  • Real-time Streaming: See the AI's response type out in real-time.
  • Rich Text Support: Full markdown rendering for bold text, lists, and tables.
  • Code Highlighting: Syntax highlighting for code blocks generated by the AI.
  • Conversation History: Maintains context of the chat session.
  • Blazing Fast: Built with Vite and React for optimal performance.

🚀 Getting Started

Follow these steps to set up the project locally on your machine.

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn
  • Google Gemini API Key

Installation

  1. Clone the repository

    git clone https://github.com/buildbyabhi/gemini-chat.git
    cd gemini-chat
  2. Install dependencies

    npm install
    # or
    yarn install
  3. Set up Environment Variables Create a .env file in the root directory and add your API key:

    VITE_GEMINI_API_KEY=your_api_key_here
  4. Run the App

    npm run dev

🛠️ Tech Stack

  • Frontend: React, Vite
  • AI Model: Google Gemini 2.0 Flash via @google/generative-ai SDK
  • Styling: CSS/TailwindCSS

🤝 Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Don't forget to give the project a star! Thanks again! ⭐

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📬 Contact

Abhishek Kumar


Made with ❤️ by Abhishek

About

Gemini Chat is an AI-powered conversational interface built using the Gemini API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors