matrixgpt / matrix-chatgpt-bot

Talk to ChatGPT via any Matrix client!
GNU Affero General Public License v3.0
234 stars 63 forks source link

Feature Request: Support multiple API keys #146

Closed c0mmando closed 1 year ago

c0mmando commented 1 year ago

Really enjoying this bot so far, but hosting a public room is becoming expensive quickly. Several users want to pool resources and share API usage across multiple accounts.

I propose a new feature to allow multiple API keys that can be used in round robin fashion.

Mijago commented 1 year ago

Not a solution, but my workaround: I launched multiple instances of the docker container with the same Matrix-User, the only change in the config being a different whitelist and api key per white-list.

jaodei commented 1 year ago

Not a solution, but my workaround: I launched multiple instances of the docker container with the same Matrix-User, the only change in the config being a different whitelist and api key per white-list.

HI Mijago, how to lanuch a second instance? I am using https://github.com/spantaleev/matrix-docker-ansible-deploy to deploy the whole matrix services. Cheers.