You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case is to perform an LLM call to generate subtitles.
LLMs aren't that reliable, which is why I'm using this wonderful retry library.
@retry(wait_fixed=20000, stop_max_attempt_number=3)
def generate_subtitles(self, video_file: File) -> GenerateSubtitleResponse:
...
# Perform checks and throw exceptions as needed.
What I am looking for is a way to know that this is my last retry.
On my last retry, I would like to weaken the checks and just return whatever is available.