- Error Code 104: Bad Gateway usually means bad API Key
- #1311 - Invalid OpenAI API Key
- #1304 - Proposal to add OpenAI paid account requirement to README.md
It is important to note that [chat.openai.com][chat] and [platform.openai.com][platform] are not the same tools. Billing for one is completely different from the other.
Whenever making changes to [https://platform.openai.com][platform], you'll need to verify that the key didn't change or to regenerate one if needed.
[chat]:https://chat.openai.com/
[platform]:https://platform.openai.com
as found in #4084, having duplicate OPEANAI_API_KEY entries in the .env file can cause the Invalid API Key error.