plz-cli
plz-cli copied to clipboard
More info for error "Failed to get a response. Have you set the OPENAI_API_KEY variable?"
Hi, looking forward to trying this, getting an error though and I'm not sure how to debug it.
The key is freshly made from https://beta.openai.com/account/api-keys. I'm using fish shell 3.5.1 in MacOS.
❯ echo $OPENAI_API_KEY
sk-<key hidden>
❯ plz "list files"
✖ Failed to get a response. Have you set the OPENAI_API_KEY variable?
I've yet to try to code in Rust so I'm not set up to try to modify the source and see what's happening.
have the same issue @m1guelpf
Having the same issue as well...
Same here (KDE Neon). Also having OPENAI_API_KEY variable persisted
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).
An API for accessing new AI models developed by OpenAI
Having the same issue here
I tried to provide billing details and set my credit card at OpenAI. Then, I repeated the steps and it worked for me:
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
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!
also was just a billing issue for me