Git Product home page Git Product logo

Comments (11)

karthink avatar karthink commented on May 25, 2024

There are two issues here.

  1. gptel is not capturing/displaying the quota error correctly.
  2. You're not able to use your API key to get a response from OpenAI.

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?

from gptel.

karthink avatar karthink commented on May 25, 2024

I just pushed a fix (1cd0f58) that should address the wrong-type-argument error.

from gptel.

boina avatar boina commented on May 25, 2024

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.

from gptel.

karthink avatar karthink commented on May 25, 2024

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?

from gptel.

karthink avatar karthink commented on May 25, 2024
  1. gptel is not capturing/displaying the quota error correctly.

The error should now be identified correctly and consistently (36051b1).

from gptel.

boina avatar boina commented on May 25, 2024

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.

from gptel.

fosskers avatar fosskers commented on May 25, 2024

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.

expired

Note also:

included

from gptel.

karthink avatar karthink commented on May 25, 2024

from gptel.

fosskers avatar fosskers commented on May 25, 2024

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
    }
}

from gptel.

karthink avatar karthink commented on May 25, 2024

@fosskers This isn't a gptel bug -- I'd check on the OpenAI account webpage.

from gptel.

fosskers avatar fosskers commented on May 25, 2024

I added a credit card, changed the model to GPT4, and now it seems to be working. Thanks!

from gptel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.