I am having a problem with this code
import openai
openai.api_key = "api_key"
completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Give me 3 ideas for apps I could build with openai apis "}])
print(completion.choices[0].message.content)
whenever i run it, it gives me a openai.error.AuthenticationError:
i tried many solutions like regenerating the api key and going through their docs many times but to no solution i come here.