I am running a shinyapp for a museum instalation, and the app calls an external API (in this case openAI API key). The app has to be open all the time, but sometimes, the API can generate a bad request, or even crashes the app due to it is solicitating a non-safety question. Is there any way to prevent or solve that, for example, by restarting the app when a crash occurs?
Thanks in advance!