Open-Assistant
Open-Assistant copied to clipboard
Show error message and retry when submitting tasks
https://github.com/LAION-AI/Open-Assistant/blob/4ab4821b05ba85a1d85bd6d94773cd0f0e5c452d/website/src/hooks/tasks/useGenericTaskAPI.tsx#L42
we should handle all kinds of errors instead of showing the NONE_AVAILABLE state. Maybe trigger a toast to let the user know or something.
A way to retry a message submission in case of an error would also be very helpful. It would prevent loss of work when users submit messages while the server is temporarily not reachable (e.g. during updates).