Skip to content

Commit 1a0c138

Browse files
CLRafaelRclaude
andcommitted
fix: increase retry attempts and waiting time
- Increase retry attempts from 3 to 8 - Increase exponential backoff from 1-10s to 2-120s Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 857a0ba commit 1a0c138

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

paperbanana/providers/vlm/gemini.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def _get_client(self):
4949
def is_available(self) -> bool:
5050
return self._api_key is not None
5151

52-
@retry(stop=stop_after_attempt(3), wait=wait_exponential(min=1, max=10))
52+
@retry(stop=stop_after_attempt(8), wait=wait_exponential(min=2, max=120))
5353
async def generate(
5454
self,
5555
prompt: str,

0 commit comments

Comments
 (0)