You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
More info for error "Failed to get a response. Have you set the OPENAI_API_KEY variable?" #2
Same here (KDE Neon). Also having OPENAI_API_KEY variable persisted
I think that it does not depend on setting OPENAI_API_KEY variable because plz do not let you run a request to OPENAI API without KEY variable. It shows the next message: This program requires an OpenAI API key to run. Please set the OPENAI_API_KEY environment variable.
IDK if it is related to API permissions or whatever.
I had problems with API_KEYS from my personal account as my account had not enough credit to make any request. You can confirm if you are able to make requests at https://beta.openai.com/playground (just make a dummy request there).
I had the same problem, billing/playground showed "You've reached your usage limit." and it started working once I provided billing details. Thanks @jcortejoso and @llunasanz!
Activity
yorhodes commentedon Dec 14, 2022
have the same issue @m1guelpf
omeb commentedon Dec 14, 2022
Having the same issue as well...

raulsanzmontrull commentedon Dec 14, 2022
Same here (KDE Neon). Also having OPENAI_API_KEY variable persisted
I think that it does not depend on setting
OPENAI_API_KEYvariable because plz do not let you run a request to OPENAI API without KEY variable. It shows the next message:This program requires an OpenAI API key to run. Please set the OPENAI_API_KEY environment variable.IDK if it is related to API permissions or whatever.
jcortejoso commentedon Dec 15, 2022
I had problems with API_KEYS from my personal account as my account had not enough credit to make any request. You can confirm if you are able to make requests at https://beta.openai.com/playground (just make a dummy request there).
raulsanzmontrull commentedon Dec 15, 2022
I tried to provide billing details and set my credit card at OpenAI. Then, I repeated the steps and it worked for me:
Thanks to @jcortejoso for the message!
m1guelpf commentedon Dec 15, 2022
Would be really helpful if anyone experiencing this issue could share a copy of the response returned, so I can improve the error message on the CLI
markkucler commentedon Dec 15, 2022
I had the same problem, billing/playground showed "You've reached your usage limit." and it started working once I provided billing details. Thanks @jcortejoso and @llunasanz!
yorhodes commentedon Dec 15, 2022
also was just a billing issue for me
Fix m1guelpf#2: Print more information on failed requests (m1guelpf#20)