Closed gperetin closed 1 month ago
Reworked the PR so we alway auto-retry up to max retries (3). If that fails, we ask the user if they want to retry again, in which case we again retry up to 3 times, then ask again, etc. If the user declines, we raise APIError which stops Pythagora:
(between each of the "do you want to retry" there's 3 retries underneath)
LGTM, can't merge as it still has me as an author, :ship:
@LeonOstrez since Goran and me collaborated on this, it falls to you as an independent party to review :)
Ask the user to retry when we get
{LLM Provider}.APIerror
exception.