BUG:Error sending message Error: ChatGPT error 400:
gpt-3.5-turbo
Do you have more information about this error? That is, about the message sent or the configuration used?
Due to the inability to directly access the ChatGPT API endpoint, I have used a proxy server to forward requests to “https://api.openai.com/v1/chat/completions”.
In my development environment, the front-end files have been built and the API key has been configured, but when I try to test sending a message, I receive a 400 error.
A 400 means that the request was malformed. This means that the data stream sent from the client to the server did not comply with the rules. So your URL is correct so far but there has to be something off with the other formatting later on.
There are many types of 400 errors and not all of them are because of malformed requests.
If you search this site, you will see many members posting various 400 errors and they are not limited to malformed API requests.
Thank you for pointing this out! I thought this would be the most probable issue, i encountered a similar thing when setting up a connector and there i had a “;” where it should have been “:”
“I used a proxy with a US server (only opened port 888, ports 80 and 443 seemed to be blocked)
to access “https://api.openai.com/v1/chat/completions” via the address “ip:888/v1/chat/completions”.
Then I filled in the proxy address in the .env file.”