derekleiro / multi-llm-chat-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi-Model AI Chatbot

This project implements a flexible AI chatbot application supporting multiple language models (Claude, GPT-3.5, Gemini) with a Node.js backend and a vanilla JavaScript frontend.

Demo

demo

Features

  • Real-time chat interface
  • Support for multiple AI models
  • PDF file upload and parsing
  • Seamless model switching
  • Responsive design

Prerequisites

  • Node.js (v14+)
  • npm or yarn

Installation

  1. Clone the repository: git clone https://github.com/derekleiro/multi-llm-chat-bot.git cd multi-llm-chat-bot

  2. Install dependencies: yarn install

  3. Set up environment variables: Create a .env file in the root directory and add your API keys:

  • CLAUDE_API_KEY=your_claude_api_key
  • OPENAI_API_KEY=your_openai_api_key
  • GEMINI_API_KEY=your_gemini_api_key

Running the Application

  1. Start the server: yarn start

Running the Application

  1. Start the server:
  2. Open a web browser and navigate to http://localhost:3000

Usage

  • Type messages in the input field to interact with the AI
  • Use the dropdown to switch between AI models
  • Upload PDF files using the attachment button

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About


Languages

Language:JavaScript 67.4%Language:CSS 21.0%Language:HTML 11.6%