Open InAnYan opened 1 month ago
That's so awful. All errors are RuntimeError
s 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
Umm, I can't find those errors)
☠️
Low prio for now.
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 ofRuntimeError
.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:![изображение](https://github.com/InAnYan/jabref/assets/13097618/beeda7ed-49ea-4766-8e0b-6e7e67b72c93)