A simple GUI chat client for interacting with the Mistral AI API. This application allows you to send messages to the Mistral API and display the responses in a user-friendly interface built with customtkinter.
- Send messages to the Mistral API and display responses in real-time.
- Navigate through message history using the Up and Down arrow keys.
- Copy messages to the clipboard with a right-click or Ctrl+C.
- Dark mode interface for a modern look.
- Python 3.8 or higher
customtkinter(for the GUI)requests(for API calls)- A valid Mistral API key
-
Clone this repository:
git clone https://github.com/your-username/mistral-chat-client.git cd mistral-chat-client -
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.envfile in the project root and add your Mistral API key:OPENAI_API_KEY=your_mistral_api_key_here
-
Run the application:
python chat.py
- Type your message in the input box and press Enter or click the Send button to submit.
- Use the Up and Down arrow keys to navigate through your message history.
- Click the Copy All button to copy the entire conversation to your clipboard.
- Click the Clear button to erase the conversation.
This project is licensed under the MIT License. See the LICENSE file for details.
This project is not affiliated with or endorsed by Mistral AI. Use of the Mistral API is subject to their terms and conditions.