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
:sparkles: Add commands to set custom system messages for ChatGPT and Claude #77
This PR introduces commands set_chatgpt_message and set_claude_message, which allow users to customize system messages for both ChatGPT and Claude models. Additionally, it adds a utility method _update_user_system_message that ensures the user exists in the database before updating their system message. These changes enhance the bot's flexibility by allowing users to set custom instructions for each AI model.
Type of change
[x] New feature (non-breaking change which adds functionality)
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.
[ ] 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.
[ ] Any dependent changes have been merged and published in downstream modules.
Description
This PR introduces commands
set_chatgpt_message
andset_claude_message
, which allow users to customize system messages for both ChatGPT and Claude models. Additionally, it adds a utility method_update_user_system_message
that ensures the user exists in the database before updating their system message. These changes enhance the bot's flexibility by allowing users to set custom instructions for each AI model.Type of change
Checklist
Linked Issues
Fixes #(issue)
System Messages