node-chatgpt-api
node-chatgpt-api copied to clipboard
A client implementation for ChatGPT and Bing AI. Available as a Node.js module, REST API server, and CLI app.
This is a good reference and I know it works on both ARM64 and AMD64: https://github.com/matrixgpt/matrix-chatgpt-bot/blob/main/Dockerfile
 
 please add "user" parameter
using reverse proxy, some questions throw an error ``` TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:14152:11) at async ChatGPTClient.getCompletion (file:///C:/Users/JerryWn/AppData/Local/Programs/node-v18.14.0-win-x64/node_modules/@waylaidwanderer/chatgpt-api/src/ChatGPTClient.js:138:26) at async ChatGPTClient.sendMessage (file:///C:/Users/JerryWn/AppData/Local/Programs/node-v18.14.0-win-x64/node_modules/@waylaidwanderer/chatgpt-api/src/ChatGPTClient.js:196:28) at async Object. (file:///C:/Users/JerryWn/AppData/Local/Programs/node-v18.14.0-win-x64/node_modules/@waylaidwanderer/chatgpt-api/bin/server.js:100:18) { cause: SocketError:...
On Mac, when running cli server locally with `npx chatgpt-cli` results in error message: ``` env: node\r: No such file or directory ``` Apparently the problem is the CRLF EOL...
Ability to set OpenAI API key for server on the first request to it
同样的一个msg,用中文就是报错,用英文反而可以正常响应,这是因为啥? The same msg report errors in Chinese but can respond normally in English. Why?  English: 
when run chatgpt cli, the program error:"That model does not exist"
I keep getting ` cause: Error: read ECONNRESET at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -54, code: 'ECONNRESET', syscall: 'read' }, page: '/api/infra/service' }` error when using the latest version. I tried...
I am trying the new Bing API, but I always get an error with "connection closed with an error". It doesn't state the reason for the error. this is the...