CharacterAI chatbot with GUI using PyQt5. Enjoy a rich and interactive chatting experience with markdown support, persistent chat history, and optional voice output powered by PyCharacterAI and characterai libraries.
- Intuitive UI: A user-friendly PyQt5 interface for seamless chatting.
- Markdown: AI responses are rendered with full markdown support, including code snippets and formatted text.
- Chat History: Conversations are automatically saved and restored for continuous interaction.
- Voice Output (Optional): Enable voice output to hear the AI's responses using the power of PyCharacterAI (requires setup).
- Dark Mode Support: Switch to a dark theme for comfortable late-night chatting.
- Python 3.7+
- Character AI Account (for API access)
-
Clone the repository:
git clone https://github.com/SSL-ACTX/PyQT_C.AI.git cd PyQT_C.AI
-
Install the dependencies:
pip install -r requirements.txt
- Edit
config.ini
: This file holds your Character AI credentials.[DEFAULT] token = YOUR_CHARACTERAI_TOKEN ; See aiocai's docs char_id = YOUR_CHARACTER_ID ; See aiocai's docs
-
Start the application:
python main.py
- Dark Mode: To launch the chatbot in dark mode, use:
python main.py --dark
- Dark Mode: To launch the chatbot in dark mode, use:
- Ensure PyCharacterAI is configured: The script leverages PyCharacterAI for voice generation. Double-check its installation and setup instructions (see PyCharacterAI Repository).
- Enable the "Voice Output" toggle within the chatbot interface.
Note: Voice output requires a valid Character AI token and relies on the capabilities of PyCharacterAI.
Contributions are welcome! Feel free to submit pull requests with improvements, bug fixes, or new features. Please follow the existing code style and include appropriate tests.
If you find this project cool, please consider giving it a star ⭐.