Welcome to the GROQ AI Chatbot! This application allows you to interact with various AI models in a user-friendly interface. You can chat, analyze sentiments, export chat history, and even customize the chatbot's personality!
- Chat with AI 🤖: Engage in conversations with different AI models.
- Custom Prompts ✏️: Set your own prompts to change the chatbot's personality.
- Sentiment Analysis 🔍: Analyze the sentiment of the last AI message.
- Export Options 💾: Export chat history to PDF or Markdown files.
- Code Snippets 📋: Highlight and manage code snippets with options to copy, edit, and set language overrides.
- Text-to-Speech 🔊: Listen to the last AI message using text-to-speech functionality.
- Color Customization 🎨: Change the background and text colors for a personalized experience.
- Toggle Chat Save 💾: Easily turn chat log saving on or off.
- Save Code Snippets with Extensions 📝: Save code snippets with the appropriate file extension based on the selected programming language.
-
Clone the repository:
git clone https://github.com/fotinov/Groq-AI-Chat.git
-
Navigate to the project directory:
cd Groq-AI-Chat
-
Obtain your API Key:
- Sign up or log in to your account on the Groq website.
- Navigate to the API section of your account dashboard.
- Generate a new API key and copy it.
-
Set your API Key:
- Open the
Groq-AI-Chat/groq_ai.py
file in a text editor. - Locate the line where the Groq API client is initialized:
client = groq.Groq(api_key="YOUR_KEY_HERE") # Replace with your actual API key
- Replace
"YOUR_KEY_HERE"
with your actual API key.
- Open the
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python chat/groq_ai.py
-
Interact with the chatbot through the GUI.
-
Use the buttons to send messages, set custom prompts, and export chat history.
- Change the AI model from the dropdown menu.
- Adjust the colors of the chat interface and message labels.
- Modify the font settings for AI replies.
You can export your chat history in different formats:
- PDF: Save your chat as a PDF file.
- Markdown: Export your chat in Markdown format for easy sharing.
- Toggle Chat Save: You can turn chat log saving on or off using the settings menu.
- Save Code Snippets: When saving code snippets, you can select the programming language, and the snippet will be saved with the appropriate file extension (e.g.,
.py
for Python,.js
for JavaScript).
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.
For any inquiries, please reach out to [email protected].
Thank you for checking out the GROQ AI Chatbot! Enjoy chatting with AI! 🎉