Skip to content

Commit

Permalink
increased max_retries to 4 on 1p api
Browse files Browse the repository at this point in the history
  • Loading branch information
zckly committed Nov 22, 2024
1 parent 0cf556e commit be18c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion computer-use-demo/computer_use_demo/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit be18c6f

Please sign in to comment.