gragland / chatgpt-chrome-extension

A ChatGPT Chrome extension. Integrates ChatGPT into every text box on the internet.
MIT License
2.85k stars 469 forks source link

"That model does not exist" error #31

Open oakif opened 1 year ago

oakif commented 1 year ago

When trying to run the server, I get the following error:

$ node server.js
✖ Training ChatGPT (1 plugin rules)
file:///Users/user/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:202
              const error = new ChatGPTError(msg, { cause: res });
                            ^

ChatGPTError: ChatGPT error 404: {
    "error": {
        "message": "That model does not exist",
        "type": "invalid_request_error",
        "param": null,
        "code": null
    }
}

    at file:///Users/user/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:202:29
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  statusCode: 404,
  statusText: 'Not Found',
  [cause]: Response {
    [Symbol(realm)]: null,
    [Symbol(state)]: {
      aborted: false,
      rangeRequested: false,
      timingAllowPassed: true,
      requestIncludesCredentials: true,
      type: 'default',
      status: 404,
...
JustBnrh commented 1 year ago

Same Problem

craigSochocki commented 1 year ago

Same here, too. Do you all have ChatGPT Plus?

munawarabadullah commented 1 year ago

Yes, I have ChatGPT Plus.

On Sun, Feb 12, 2023 at 8:48 AM craigSochocki @.***> wrote:

Same here, too. Do you all have ChatGPT Plus?

— Reply to this email directly, view it on GitHub https://github.com/gragland/chatgpt-chrome-extension/issues/31#issuecomment-1426942315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYHSUNWXTMTFVEPUQCCP6ADWXBTQNANCNFSM6AAAAAAUY4TORI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

oakif commented 1 year ago

Same here

gragland commented 1 year ago

@josephvtesta Any idea what the cause would be? Issue seemed to start happening after merging your pull request.

AdamSiyala commented 1 year ago

"npm install chatgpt" fixed it for me.

maurop123 commented 1 year ago

"npm install chatgpt" fixed it for me.

Worked for me too. chatgpt v4.4.0 seems to work

ControlledExplosion commented 1 year ago

Same issue as a free plan user. @AdamSiyala's solution works for me as well.

josephvtesta commented 1 year ago

@josephvtesta Any idea what the cause would be? Issue seemed to start happening after merging your pull request.

Yep, @AdamSiyala is correct. Make sure you've got chatgpt 4.0.0 or greater installed. All is working for me.

ajesuscode commented 1 year ago

I just modified on server.js completionParams, because console.log was showing me a wrong oneconst gptApi = new ChatGPTAPI({ apiKey: process.env.OPENAI_API_KEY, completionParams: { model: "text-davinci-003", top_p: 0.8, }, maxResponseTokens: 300, }); console.log(gptApi);

MustafaAlsaegh commented 1 year ago

I keep getting this problem ChatGPTError: ChatGPT error 429: { "error": { "message": "You exceeded your current quota, please check your plan and billing details.", "type": "insufficient_quota", "param": null, "code": null }

ajesuscode commented 1 year ago

I keep getting this problem ChatGPTError: ChatGPT error 429: { "error": { "message": "You exceeded your current quota, please check your plan and billing details.", "type": "insufficient_quota", "param": null, "code": null }

It says that you used all your free api quota from provided api_key Please log in into your account and click Usage. There you will see Free Trial Usage. If you have 0 or you spent all 18 dollars grant it means you need new account and new free trial api key