cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.3k stars 493 forks source link

Feature request: preconfigured API keys #97

Closed Karunamon closed 1 year ago

Karunamon commented 1 year ago

Having the option to specify the API keys for openai and eleven outside of the application (say as environment variables) would make this usable in situations where the end user might not be expected to have their own key, say, a company with their own openai account, or a family.

cogentapps commented 1 year ago

Added in today's update.

Create a file called config.yaml in your data folder with the following contents:

services:
  openai:
    apiKey: (your api key)
  elevenlabs:
    apiKey: (your api key)

and restart the server. Then chat & speech will work without entering your API key in the app.

If you encounter any issues with this new feature, please open a separate issue.