Closed boina closed 1 year ago
There are two issues here.
I'll address 1 soon.
For 2, I'm not sure what's going on -- many users have confirmed that gptel works with a free account. Could you try (setq gptel-stream nil)
and try, just to be sure?
I just pushed a fix (1cd0f585) that should address the wrong-type-argument
error.
I installed the latest version with the fix for wrong-type-argument.
When I set gptel-stream to nil and send a query to chatGTP I get this:
ChatGPT error: You exceeded your current quota, please check your plan and billing details.
and when I set gptel-stream to 1 I get this other message:
ChatGPT error (HTTP/2 429): Could not parse HTTP response.
Also,
1) just in case some other setting from my init file could be causing some trouble I tried in a vanilla emacs but got the same error. 2) Another thing I tried is to intentionally set a wrong api key. And I get the same error.
and when I set gptel-stream to 1 I get this other message:
ChatGPT error (HTTP/2 429): Could not parse HTTP response.
Hmm, the error message is still wrong. To be clear, gptel itself no longer throws an error, correct?
- gptel is not capturing/displaying the quota error correctly.
The error should now be identified correctly and consistently (36051b15).
I have tried with a brand new account (I had my own from openai before chatGPT was around) and now it works. So the problem is not the gptel package, is my account. The insufficient quota message is correct then although I don't know why. I will see if I can get an answer from openai.
Thanks for the help anyway.
I'm also currently suffering from this. Specifically, the claim that my quota is exceeded even though I've never used the API keys.
EDIT: Ah.
Note also:
Could you provide some more detail? What error exactly do you mean?
Also, could you run
(setq gptel--debug t)
and retry? A buffer should pop up with the response from ChatGPT. That should have more information.
I see this in my *Messages*
buffer:
ChatGPT error: (HTTP/2 429) You exceeded your current quota, please check your plan and billing details.
The corresponding JSON from the debug output is:
{
"error": {
"message": "You exceeded your current quota, please check your plan and billing details.",
"type": "insufficient_quota",
"param": null,
"code": null
}
}
@fosskers This isn't a gptel bug -- I'd check on the OpenAI account webpage.
I added a credit card, changed the model to GPT4, and now it seems to be working. Thanks!
I installed gptel package from MELPA. It's the latest version as far as I can tell (20230407.32). I'm using with a free openai account. I'm not sure if this package works with the free account.
When I send a query I get the following error:
In the message buffer I have this output:
I also evaluated the function in https://github.com/karthink/gptel/issues/10#issuecomment-1463617391 and go this output:
I'm running emacs 28.2 in Archlinux. curl version is 8.0.1 Although it says my quota is over I couldn't make it work a single time. Also, I'm not sure it's relevant but when I check my keys in the openai website I see that my keys were never used.
José.