node-chatgpt-api icon indicating copy to clipboard operation
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.

Results 85 node-chatgpt-api issues
Sort by recently updated
recently updated
newest added

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

enhancement
help wanted

![image](https://user-images.githubusercontent.com/86822589/216814112-64c721da-bac7-4786-ba7c-085bb3bd77df.png) ![image](https://user-images.githubusercontent.com/86822589/216814124-61942d90-a502-46a5-ae18-30a3a1373799.png)

![image](https://user-images.githubusercontent.com/46756368/218312304-db9cc4e0-fe59-457f-881d-3a186439801a.png) 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

enhancement

同样的一个msg,用中文就是报错,用英文反而可以正常响应,这是因为啥? The same msg report errors in Chinese but can respond normally in English. Why? ![image](https://user-images.githubusercontent.com/48341841/219109041-66179265-b370-46bb-b8c2-e783007873a2.png) English: ![image](https://user-images.githubusercontent.com/48341841/219109326-04b4ebda-e94e-4d23-a3d9-8242ad6ded07.png)

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...