From be18c6f00f6cb40c51a0a1cb5755a36035e24aa5 Mon Sep 17 00:00:00 2001 From: Zack Lee Date: Fri, 22 Nov 2024 18:20:35 -0500 Subject: [PATCH] increased max_retries to 4 on 1p api --- computer-use-demo/computer_use_demo/loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computer-use-demo/computer_use_demo/loop.py b/computer-use-demo/computer_use_demo/loop.py index 9db525a3..de91c430 100644 --- a/computer-use-demo/computer_use_demo/loop.py +++ b/computer-use-demo/computer_use_demo/loop.py @@ -103,7 +103,7 @@ async def sampling_loop( betas = [COMPUTER_USE_BETA_FLAG] image_truncation_threshold = 10 if provider == APIProvider.ANTHROPIC: - client = Anthropic(api_key=api_key) + client = Anthropic(api_key=api_key, max_retries=4) enable_prompt_caching = True elif provider == APIProvider.VERTEX: client = AnthropicVertex()