Skip to content

biniam0/GemBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tech Stacks

Python Django HTML CSS Bootstrap SQLite Gemini AI Markdown

AI Chat Application

An interactive web application where users can chat with an AI model (powered by Gemini 1.5). The app stores chat history for logged-in users and provides an intuitive user interface for seamless communication.

Features

  • User authentication: Login and logout functionality.
  • Chat functionality: Users can send messages and receive responses from the AI.
  • Chat history: Stores and displays past chats for logged-in users.
  • Markdown formatting: AI responses are formatted using Markdown for better readability.
  • Environment variable management: API keys and sensitive data are securely stored and managed.

Technologies Used

  • Backend: Django
  • Frontend: HTML, CSS, Bootstrap
  • Database: SQLite (or your configured database)
  • AI Integration: Gemini AI API
  • Markdown Formatting: Python markdown module

Setup Instructions

  1. Clone the Repository:
  • git clone <repository-url>
  • cd <repository-folder>
  1. Set Up Environment Variables:
  • Create a .env file in the project root:
  • API_KEY=your-secret-api-key
  • Add .env to .gitignore to prevent accidental commits.
  1. Install Dependencies:
  • pip install -r requirements.txt
  1. Run Migrations:
  • python manage.py migrate
  1. Start the Server:
  • python manage.py runserver
  • Access the Application: Open http://127.0.0.1:8000/ in your browser.

Usage

  1. Authentication:
  • Login to access chat history and save new chats.
  • Logout to access the public chat functionality without saving history.
  1. Chat with AI:
  • Type a message in the chat box and click "Send."
  • Receive a response formatted with Markdown.

Chat History:

  • Logged-in users can view their past conversations.
  • Environment Variables
  • Ensure the following environment variables are set:

API_KEY: Your Gemini AI API key

Future Enhancements:

  • OAuth Intergration to provide secure and seamless login experience
  • Adding New Tab which allow topic based conversation
  • Expanding to other databases for scalability.
  • Improve user interface with additional styling.
  • Enable exporting chat history as a file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors