Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"That model does not exist" error #31

Open
oakif opened this issue Feb 11, 2023 · 12 comments
Open

"That model does not exist" error #31

oakif opened this issue Feb 11, 2023 · 12 comments

Comments

@oakif
Copy link

oakif commented Feb 11, 2023

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
Copy link

Same Problem

@craigSochocki
Copy link

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

@munawarabadullah
Copy link

munawarabadullah commented Feb 12, 2023 via email

@oakif
Copy link
Author

oakif commented Feb 12, 2023

Same here

@gragland
Copy link
Owner

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

@AdamSiyala
Copy link

"npm install chatgpt" fixed it for me.

@maurop123
Copy link

maurop123 commented Feb 15, 2023

"npm install chatgpt" fixed it for me.

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

@oakif oakif changed the title "That model does not exist error" "That model does not exist" error Feb 16, 2023
@ControlledExplosion
Copy link

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

@josephvtesta
Copy link
Contributor

@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
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests