You may encounter this error in the chatbot despite having entered your chatGPT API key correctly.
The most likely reason is that you have no credits in your OpenAI account. The chatbot uses the OpenAI API and there is a charge for using the API.
Check your OpenAI account and credit it if necessary so that the chatbot can work.