Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.16 KB

README.md

File metadata and controls

41 lines (32 loc) · 1.16 KB

🤖 AI Chatbot with Groq API 🌐

This is a simple AI chatbot 📝 built using Python 🐍 and Tkinter 🎨. The chatbot interacts with the Groq API 🔗 to generate AI-powered responses 🧠.

✨ Features

  • 🖤 Dark-themed GUI
  • 🔄 Model selection (🦙 Llama3, 🤹 Mixtral, 💎 Gemma)
  • 🎛️ Customizable system prompt
  • 💾 Chat history saving

🛠️ Installation

  1. 📥 Clone the repository:
    git clone https://github.com/yourusername/yourrepo.git
    cd yourrepo
  2. ⚙️ Install dependencies:
    pip install groq tkinter
  3. ▶️ Run the chatbot:
    python chatbot.py

🔑 Obtaining an API Key

  1. 🌍 Visit the Groq API website.
  2. 📝 Sign up or log in.
  3. 📑 Navigate to the API section and generate an API key.
  4. 🖊️ Replace "API KEY" in chatbot.py with your actual API key.

💬 Usage

  1. ▶️ Run the chatbot script.
  2. 📌 Select a model from the dropdown.
  3. ⌨️ Type a message and press Enter or click "Send" 🚀.
  4. 🛠️ Set a custom prompt using the "Set Prompt" button (optional).
  5. 🔚 Type exit or quit to close the chatbot and save chat history 🗃️.