InAnYan / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
0 stars 0 forks source link

Make a user friendly error message from `langchain4j` #23

Open InAnYan opened 1 month ago

InAnYan commented 1 month ago

Is your suggestion for improvement related to a problem? Please describe. In case of any errors while chatting with AI, langchain4j will throw a kind of RuntimeError.

Currently, the JabRef presents user a raw error message, that is too scary for user.

Describe the solution you'd like Check the kind of error and provide user with a clear, simple, and internationalized message.

Additional context An example, if user has entered a wrong OpenAI API token: изображение

InAnYan commented 4 weeks ago

That's so awful. All errors are RuntimeErrors and I can't understand what errors can be.

I guess for now let's focus on two cases: 1) No internet 2) Wrong token 3) No money 4) Message is too large

InAnYan commented 4 weeks ago

Umm, I can't find those errors)

InAnYan commented 3 weeks ago

изображение

☠️

ThiloteE commented 5 days ago

Low prio for now.