AlphaLLM is a Python-written Discord bot that integrates multiple AI APIs:
- Cerebras
- Pollinations AI
- Mistral AI
- Gemini AI
- OpenRouter
- AI-ML
- Groq
- Navy AI
- Void AI
- Cloudinary
- Cloudflare Workers
- Hackclub AI
- 🔗 Link Processing: Automatically replaces links with their content in Markdown format, except for JavaScript content.
- 📕 File Processing: Handles common file types using the
Markitdownlibrary. - 📄 Markdown Support: Formats responses using Discord's Markdown syntax.
- ✂️ Adaptive Formatting: Formats code blocks, tables, and quotes in the most suitable way for Discord.
- 🖼️ High-Quality Image Generation: Generates images up to 2048x2048 resolution.
- ✏️ Basic Image Editing: Enables AI-based image editing.
- 🔁 Regeneration Button: Regenerates the response or image.
- ⚙️ Maximum Customization: Allows customization for specific server use, including the ability to add details to the base system prompt.
⚠️ Error Handling: Manages errors from different APIs and informs the user accordingly.
- 🖥️ Python 3.11.13
- 🤖 A Discord bot
- 🔑 An API key for each service
- 📦 A PostgreSQL database
Project dependencies are listed in the requirements.txt file:
-
Clone the repository:
git clone https://github.com/YoannDev90/AlphaLLM.git
-
Install dependencies:
pip install -r requirements.txt
-
Configure your settings in the
config.tomlfile and your keys in the.envfile. -
Launch the bot:
python main.py
To chat with the bot, simply mention it in an authorized Discord channel:
@AlphaLLM What is the capital of France?
>>> The capital of France is: **Paris** 🗼️.The bot will respond with a formatted answer. You can also send it links or files for processing.
To ask a one-time question without context, use the /ask command:
/ask What is the capital of France?
>>> The capital of France is: **Paris** 🗼️.Note that using this command does not affect your conversation history.
This command is available for use on servers where the bot is not installed, provided the server allows external commands.
To generate an image, use the /image command:
/image "a beautiful natural landscape"
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a branch.
- Submit a Pull Request with a clear description.
For any questions or issues, contact us via the support Discord server.
Thank you for using AlphaLLM! 🎮✨