Skip to content

Commit

Permalink
fix(agent/core): Set retries_per_request to 7 by default
Browse files Browse the repository at this point in the history
10 was too much, caused multi-minute timeouts between retries
  • Loading branch information
Pwuts committed Apr 20, 2024
1 parent 80b54e3 commit f71249f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -113,7 +113,7 @@ class AnthropicProvider(Configurable[AnthropicSettings], ChatModelProvider):
name="anthropic_provider",
description="Provides access to Anthropic's API.",
configuration=AnthropicConfiguration(
retries_per_request=10,
retries_per_request=7,
),
credentials=None,
budget=ModelProviderBudget(),
Expand Down
Expand Up @@ -37,7 +37,7 @@ class MultiProvider(Configurable[ModelProviderSettings], ChatModelProvider):
"Provides access to all of the available models, regardless of provider."
),
configuration=ModelProviderConfiguration(
retries_per_request=10,
retries_per_request=7,
),
budget=ModelProviderBudget(),
)
Expand Down
Expand Up @@ -299,7 +299,7 @@ class OpenAIProvider(
name="openai_provider",
description="Provides access to OpenAI's API.",
configuration=OpenAIConfiguration(
retries_per_request=10,
retries_per_request=7,
),
credentials=None,
budget=ModelProviderBudget(),
Expand Down

0 comments on commit f71249f

Please sign in to comment.