karthink / gptel

A simple LLM client for Emacs
GNU General Public License v3.0
1.04k stars 111 forks source link

(OpenAI) HTTP 429 Too Many Requests error #252

Closed karthink closed 3 months ago

karthink commented 3 months ago
          With
(use-package gptel
  :ensure t :defer t
  :custom
  (gptel-use-curl nil)
  (gptel-stream nil)
  )

followed by M-x gptel and inputting just "Hi" and then M-x gptel-send I get

gptel response error: (((HTTP/1.1 429 Too Many Requests) insufficient_quota) You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.) nil

. How can I check that gptel is picking up my creds using auth-source?

Originally posted by @nordlow in https://github.com/karthink/gptel/issues/251#issuecomment-1999782044

karthink commented 3 months ago

. How can I check that gptel is picking up my creds using auth-source?

@nordlow I doubt that's the issue, the error would be different, but you can check as follows:

  1. (setq gptel-log-level 'debug)
  2. Send a request
  3. Check the *gptel-log* buffer. It should contain a self-contained Curl command that you can copy and paste into the terminal and check.

Also please note: the discussion about gptel-use-curl or gptel-stream in #251 is not relevant to your issue, you can remove those lines from your config.

Also please search the issues page for "insufficient quota" errors -- this is almost certainly an OpenAI billing issue and unrelated to gptel.

nordlow commented 3 months ago

Ok, thanks. Note that the key was generated in my paid ChatGPT 4 account I've been using in my browser without any issues. So how can it be a billing issue then?

karthink commented 3 months ago

OpenAI API access is a different bill from paying for chatgpt plus or browser access to gpt-4. These payments are unconnected. (This has been discussed several times in past issues)

On Fri, Mar 15, 2024, 10:32 AM Per Nordlöw @.***> wrote:

Ok, thanks. Note that the key was generated in my paid ChatGPT 4 account I've been using in my browser without any issues.

— Reply to this email directly, view it on GitHub https://github.com/karthink/gptel/issues/252#issuecomment-2000129524, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBVOLG6AHDFIXXBEIJ3NXTYYMWCPAVCNFSM6AAAAABEYJJ6FSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBQGEZDSNJSGQ . You are receiving this because you authored the thread.Message ID: @.***>

karthink commented 3 months ago

@nordlow Were you able to resolve this OpenAI billing issue?

nordlow commented 3 months ago

@nordlow Were you able to resolve this OpenAI billing issue?

I'm using another AI provider instead. Ok to close this for now.