Add the API key while initilaising the OPENAI client and error will be resolved
client = OpenAI(api_key = "your_api_key")