Good idea to create this wrapper. I thought about making one myself at some point, but then I read OpenAI's policies and held back 😅. So, it was great to find your project here!
I wanted to inform you about a strange behavior I see here. I'm getting a 400, even after triple-checking the session id, so I decided to bring this to you. I'll paste the code and the error here. If you need any other information, please let me know.
➜ chatgpt-real-wrapper node index.js
Bot loaded!
You > [ERROR] 2023-05-30 17:36:24 Request failed with status code 400
file:///Users/juanpedrosugg/Dev/chatgpt-real-wrapper/node_modules/chatgpt-io/dist/classes/chatgpt.js:174
throw new Error(result.error);
^
Error: Request failed with status code 400
at ChatGPT.getTokens (file:///Users/juanpedrosugg/Dev/chatgpt-real-wrapper/node_modules/chatgpt-io/dist/classes/chatgpt.js:174:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Timeout._onTimeout (file:///Users/juanpedrosugg/Dev/chatgpt-real-wrapper/node_modules/chatgpt-io/dist/classes/chatgpt.js:42:17)
➜ chatgpt-real-wrapper
Hey there!
Good idea to create this wrapper. I thought about making one myself at some point, but then I read OpenAI's policies and held back 😅. So, it was great to find your project here!
I wanted to inform you about a strange behavior I see here. I'm getting a 400, even after triple-checking the session id, so I decided to bring this to you. I'll paste the code and the error here. If you need any other information, please let me know.
Project structure
.env
CHATGPT_SESSION_TOKEN="__Secure-next-auth.session-token value"
index.js
package.json
Error