Looks like you need an env var `OPENAI_API_KEY` for this to work. Strange that it is not documented at all.
Also they could have provided an actual error rather than letting it panic!
Also they could have provided an actual error rather than letting it panic!
read the returning message it says I exceeded my daily quota, checked my account, my free API trial period ended a few months back.
Paying for ChatGPI does not mean you can get API access, in short, you need pay for API access separately after a short trial period to use this tool:
"No, the ChatGPT API and ChatGPT Plus subscription are billed separately. The API has its own pricing, which can be found at https://openai.com/pricing. The ChatGPT Plus subscription covers usage on chat.openai.com only and costs $20/month."