gmpetrov / openai-chatgpt

🤖 Use ChatGPT from the terminal
129 stars 11 forks source link

Error: Model does not exist #5

Open braden-w opened 1 year ago

braden-w commented 1 year ago

Seems like the model has been patched:

╰────────────────────────────────────────────────────────────────────────────────╯
[ERROR] ChatGPTError: ChatGPT error 404: {
    "error": {
        "message": "That model does not exist",
        "type": "invalid_request_error",
        "param": null,
        "code": null
    }
}

    at file:///Users/braden/Library/pnpm/global/5/.pnpm/chatgpt@4.1.3/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,
      timingInfo: [Object],
      cacheState: '',
      statusText: 'Not Found',
      headersList: [HeadersList],
      urlList: [Array],
      body: [Object]
    },
    [Symbol(headers)]: HeadersList {
      [Symbol(headers map)]: [Map],
      [Symbol(headers map sorted)]: null
    }
  }
}
gmpetrov commented 1 year ago

The leaked model is not accessible anymore. The latest version uses text-davinci-003 (note that you'll be charged by OpenAI when using it) npm install -g openai-chatgpt@latest