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()