Kav-K/GPTDiscord

Ensure user provided API keys work for internet, search, code chats

Kav-K opened this issue · 0 comments

For /gpt converse and other commands, when an environment variable is set we can force people to enter their own API keys to use functionalities of the bot, we need to ensure that this functionality is ported over to the new connected chats and that it still works.

If we are forcing user-provided api keys, each individual user of the bot needs to put in their API key before they can use a feature, this onboarding is already set up. For the rest of the chat after the chat is created, the api key used will be the one provided by the user, other people can participate in the chat and it will use the initial user's api key. If other people want to make their own chats, they need their own API key added as well.