Skip to content

Commit

Permalink
increased max_retries to 4 on 1p api (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
zckly authored Nov 22, 2024
1 parent 0cf556e commit e3cdfa6
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 e3cdfa6

Please # to comment.