brave-browser
brave-browser copied to clipboard
[BYOM]: Display error messages in the UI (for OpenAI and more in general)
Description
If a request fails we currently show a standardized message and it's not easy for the user to understand the issue, i.e. missing credits in API.
Steps to reproduce
- Connect OpenAI API to Leo
- Put faulty key
- Make request
Actual result
General error message
Expected result
Error message with explanation
Channel information
- [ ] release (stable)
- [ ] beta
- [X] nightly