Hi folks,
I'm working on fine-tuning a script that I use to send a few images from cameras to Google Gemini for analysis and sends a notification. About 80% of the time, the script runs fine. The other 20%, Gemini either errors out or takes forever to respond.
I'd like to impose my own 10 second timeout on the Gemini process -- if the script hasn't heard back in that time (or Gemini errored out), it should send the notification without analysis. Is this possible? I've read through the documentation on timeouts and events, but nothing is standing out.
Thanks in advance!