Discord bot built with Pycord that offers AI chat and image generation inside of Discord. Image generations are saved in cloudinary and hosted online for all to download.
GNU General Public License v3.0
2
stars
1
forks
source link
✨ Removed moderation from database and moderation Cog. Chat history is now set up for per user chat history. Tests passing locally and 66% coverage #60
This PR implements user-specific chat logs for the Claude AI assistant. It modifies the database structure and operations to store and retrieve chat history on a per-user basis, enhancing the conversational experience by maintaining context for each user individually.
Key changes include:
Refactored the database operations into a ChatDatabase class
Updated the Anthropic cog to use user-specific chat logs
Updated Openai cog to use user-specific chat logs
Modified the ask_claude utility function to work with user-specific data
Added a new clear_chat command to allow users to reset their conversation history
Type of change
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
This PR implements user-specific chat logs for the Claude AI assistant. It modifies the database structure and operations to store and retrieve chat history on a per-user basis, enhancing the conversational experience by maintaining context for each user individually.
Key changes include:
ChatDatabase
classask_claude
utility function to work with user-specific dataclear_chat
command to allow users to reset their conversation historyType of change
Checklist