openchatai / OpenChat

LLMs custom-chatbots console ⚡
https://open.cx
MIT License
5.2k stars 639 forks source link

error AxiosError: Request failed with status code 401 #76

Closed xhb7636553 closed 1 year ago

xhb7636553 commented 1 year ago

I suffer this error,please...

error AxiosError: Request failed with status code 401 2023-06-15 19:28:02 at createError (file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:310:16) 2023-06-15 19:28:02 at settle (file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:25:16) 2023-06-15 19:28:02 at file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:175:19 2023-06-15 19:28:02 at new Promise () 2023-06-15 19:28:02 at fetchAdapter (file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:167:12) 2023-06-15 19:28:02 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2023-06-15 19:28:02 at async RetryOperation._fn (/usr/src/app/node_modules/p-retry/index.js:50:12) { 2023-06-15 19:28:02 config: { 2023-06-15 19:28:02 transitional: { 2023-06-15 19:28:02 silentJSONParsing: true, 2023-06-15 19:28:02 forcedJSONParsing: true, 2023-06-15 19:28:02 clarifyTimeoutError: false 2023-06-15 19:28:02 }, 2023-06-15 19:28:02 adapter: [AsyncFunction: fetchAdapter], 2023-06-15 19:28:02 transformRequest: [ [Function: transformRequest] ], 2023-06-15 19:28:02 transformResponse: [ [Function: transformResponse] ], 2023-06-15 19:28:02 timeout: 0, 2023-06-15 19:28:02 xsrfCookieName: 'XSRF-TOKEN', 2023-06-15 19:28:02 xsrfHeaderName: 'X-XSRF-TOKEN', 2023-06-15 19:28:02 maxContentLength: -1, 2023-06-15 19:28:02 maxBodyLength: -1, 2023-06-15 19:28:02 validateStatus: [Function: validateStatus], 2023-06-15 19:28:02 headers: { 2023-06-15 19:28:02 Accept: 'application/json, text/plain, /', 2023-06-15 19:28:02 'Content-Type': 'application/json', 2023-06-15 19:28:02 'User-Agent': 'OpenAI/NodeJS/3.2.1', 2023-06-15 19:28:02 Authorization: 'Bearer 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' 2023-06-15 19:28:02 }, 2023-06-15 19:28:02 method: 'post', 2023-06-15 19:28:02 data: '{"model":"gpt-3.5-turbo","temperature":0,"top_p":1,"frequency_penalty":0,"presence_penalty":0,"n":1,"stream":false,"messages":[{"role":"user","content":"Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question.\n\nChat History:\ntest\nFollow Up Input: test\nStandalone question:"}]}', 2023-06-15 19:28:02 url: 'https://api.openai.com/v1/chat/completions' 2023-06-15 19:28:02 },

xhb7636553 commented 1 year ago

My enviroment is Mac

gharbat commented 1 year ago

Hello, it seems that OpenAI has rate limited your account.