patrikzudel / PatrikZeros-ChatGPT-API-UI

Static webpage that allows you to use your OpenAI API key for the same experience as you get with ChatGPT!
https://chat.patrikzudel.me
GNU General Public License v3.0
510 stars 100 forks source link

Better error messaging #8

Closed ManveerBhullar closed 1 year ago

ManveerBhullar commented 1 year ago

Currently, the error message is more confused than me

There was an error. Maybe the API key is wrong? Or the servers could be down?

The error message should instead be specific, so users can understand what the problem is. It can be figured out by digging into the dev console, but might as well surface it. For example, if its the token issue, that chat is never going to recover until msgs are deleted, so the user should know.

patrikzudel commented 1 year ago

Thanks, fixed.