casual-simulation / casualos

Casual Open Simulation for the Web
https://ab1.bot
MIT License
49 stars 9 forks source link

Handle 400 Bad Request Errors from OpenAI #320

Closed KallynGowdy closed 8 months ago

KallynGowdy commented 10 months ago

Currently, if the OpenAI API returns a 400 bad request error, then the backend will log it and return a 500 server error. We should investigate to see if we can handle such errors in a better fashion and potentially return a 400 error to the user if the reason for the bad request is because of user input.

KallynGowdy commented 8 months ago

Fixed in #392