yGuy / chatgpt-mattermost-bot

A very simple implementation of a service for a mattermost bot that uses ChatGPT in the backend.
MIT License
145 stars 50 forks source link

add customizable Prompt for the bot #63

Closed m00nyONE closed 6 months ago

m00nyONE commented 9 months ago

From https://github.com/yGuy/chatgpt-mattermost-bot/issues/62

Adds the possibility to customize the bot by adding a custom prompt. The env variable for this is called BOT_INSTRUCTION

The change is also reflected to the Helm chart.

IMPORTANT: the Helm chart needs to be updated with the new version of the container that is built here: https://github.com/yGuy/chatgpt-mattermost-bot/blob/c6e547125f7bfb24efe14ac990ee05dbac5d6564/helm/chatgpt-mattermost-bot/Chart.yaml#L5 to the Version without "v" ( ex 2.2.0 )

and here: https://github.com/yGuy/chatgpt-mattermost-bot/blob/c6e547125f7bfb24efe14ac990ee05dbac5d6564/helm/chatgpt-mattermost-bot/Chart.yaml#L6 to match the image tag ( ex. v2.2.0 )

This needs to be done by the repository maintainer as there is no way for me to know how the next image is tagged