Skip to content

Add a retry-config overload to Anthropic create_client - #53

Merged
iskakaushik merged 1 commit into
provider-refresh/04-streamingfrom
provider-refresh/05-anthropic-retry
Aug 19, 2026
Merged

Add a retry-config overload to Anthropic create_client#53
iskakaushik merged 1 commit into
provider-refresh/04-streamingfrom
provider-refresh/05-anthropic-retry

Conversation

@iskakaushik

@iskakaushik iskakaushik commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

The OpenAI factory already accepts a retry::RetryConfig so callers
can tune retry behavior for unreliable networks, but the Anthropic
factory offered no equivalent, leaving its clients pinned to the
default policy.

Add the matching create_client(api_key, base_url, retry_config)
overload. The two public AnthropicClient constructors now delegate
to one private constructor taking std::optionalretry::RetryConfig
rather than duplicating the ProviderConfig block.

Closes #39.


Stack created with GitHub Stacks CLIGive Feedback 💬

@iskakaushik
iskakaushik force-pushed the provider-refresh/05-anthropic-retry branch from a639000 to 9361caf Compare August 19, 2026 17:43
@iskakaushik
iskakaushik force-pushed the provider-refresh/05-anthropic-retry branch from 9361caf to 2dae79c Compare August 19, 2026 17:44
The OpenAI factory already accepts a retry::RetryConfig so callers
can tune retry behavior for unreliable networks, but the Anthropic
factory offered no equivalent, leaving its clients pinned to the
default policy.

Add the matching create_client(api_key, base_url, retry_config)
overload. The two public AnthropicClient constructors now delegate
to one private constructor taking std::optional<retry::RetryConfig>
rather than duplicating the ProviderConfig block.
@iskakaushik
iskakaushik force-pushed the provider-refresh/05-anthropic-retry branch from 2dae79c to b04a17b Compare August 19, 2026 17:45
@iskakaushik
iskakaushik merged commit 5333558 into main Aug 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RetryConfig for anthropic client

1 participant