CSAI friendlier error messages

I’ve ran into a couple of error messages in the AI chat panel due to a missing and incorrect API key (those were the only ones I’ve triggered so far) and noticed the error messages look very developer-y and not user friendly.

I propose making the error messages friendlier, more readable, and user-focused and hide the JSON response behind a dropdown that can be clicked for more technical details of the error.

I’ll start with the empty API key error. I agree with getting easier to read error messages in there. Thanks for the feedback.

1 Like

Yeah just got OpenAI API Error:{"error":{"message":"Unknown parameter: 'quality'.","type":"invalid_request_error","param":"quality","code":"unknown_parameter"}}
because I mistakenly tried to generate a text response while having “Text to Image” selected. A normal user has no way of finding out what the problem is. Well I guess they could search or ask ChatGPT, ahaha.