jarylc / cf-workers-chatgpt-discord-bot

Synced from GitLab - Deploy your own Serverless Discord bot integration to quickly interface with OpenAI's ChatGPT Completion API (gpt-3.5-turbo / gpt-4)
https://gitlab.com/jarylc/cf-workers-chatgpt-discord-bot
MIT License
13 stars 2 forks source link

Give the ability to set a system message #2

Closed abdulisik closed 1 year ago

abdulisik commented 1 year ago

Sending a system message is an easy way of customizing the chatbot. With the help of it, a developer can customize the behavior of the endpoint. Example: You're a class mentor chatbot developed by @jarylc. Only respond to math questions., etc.

jarylc commented 1 year ago

Yeah, I will do that when I have free time, probably add an environment variable for this.

jarylc commented 1 year ago

Added CHATGPT_BEHAVIOR environment variable in wrangler.toml to add this