ivnvxd/hack-interview

The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

barry-patil opened this issue · 1 comments

The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

You need to create .env file in the project directory and add your OpenAI API key to it. Just rename the .env.example and add your key.
Here is the OpenAI instruction: https://platform.openai.com/docs/quickstart/step-2-set-up-your-api-key