dsw7 / GPTifier

A beautiful C++ libcurl / ChatGPT interface. I more or less work on this project for fun :)
MIT License
0 stars 0 forks source link

Read OpenAI API key from environment variables instead of configuration file #51

Closed dsw7 closed 4 months ago

dsw7 commented 4 months ago

Impetus

Currently, we set the OpenAI API key via configuration file. This is okay, but not necessarily ideal. There should ideally be "one source of truth" (such as an environment variable) as opposed to having an API key located in multiple configuration files.