yGuy / chatgpt-mattermost-bot

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

[Improvement] Map usernames before sending to OpenAI #55

Open yGuy opened 1 year ago

yGuy commented 1 year ago

For some features (summarization, e.g.) we transmit the user names to OpenAI, but there are very strict limits about the user names in place at OpenAI.

We should rather come up with unique dummy user names that adhere to the strict limits and send them to OpenAI, instead. When the response comes back we should search and replace the dummy names with the real names again. This would allow having arbitrary user names and also adds a little bit of privacy.