chatgpt_telegram_bot icon indicating copy to clipboard operation
chatgpt_telegram_bot copied to clipboard

Allow users to upload their own openAI API key and pay the bill themself

Open EasonC13 opened this issue 1 year ago • 4 comments

Hi, this repo is awesome!

Curious if the team is interested in including a version that requires users to upload their OpenAI API key first to use ChatGPT. Maybe the host could enable this feature by setting a boolean in config.

By doing so, the host can open the bot to others who don't have the resource to host but want to use ChatGPT and pay the bill by themself.

If yes, I can contribute to that part.

Regarding the security issue, we could use encryption methods to encrypt the key users uploaded by their userID and username. Hence, the host can't access their key in Database directly. Maybe need to hash the user id and username to create a mapping to de-identify users in the database as well.

Thank you.

EasonC13 avatar Mar 08 '23 03:03 EasonC13