You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createError.js?6b1b:16 Uncaught (in promise) Error: Request failed with status code 401
at createError (webpack-internal:///(:3000/app-client)/./node_modules/openai-api/node_modules/axios/lib/core/createError.js:16:15)
at settle (webpack-internal:///(:3000/app-client)/./node_modules/openai-api/node_modules/axios/lib/core/settle.js:17:12)
at XMLHttpRequest.onloadend (webpack-internal:///(:3000/app-client)/./node_modules/openai-api/node_modules/axios/lib/adapters/xhr.js:54:7)
Screenshot
The text was updated successfully, but these errors were encountered:
I've got the same problem. Did you manage to solve it?
Based on the response status it means you are not authorized to use API. When I read the documentation I understand that the API token has limitation usage for free ( total of tokens per day ).
Reproduce
Generate the key from the OpenAPI.
Installation
npm install openai-api
Expected
Print the result
Current
Screenshot
The text was updated successfully, but these errors were encountered: