raythurman2386 / cognibot

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

Closed raythurman2386 closed 1 week ago

raythurman2386 commented 1 week ago

Description

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

Checklist

Linked Issues

Fixes #(issue)

System Messages