Skip to content

refactor(llm): extract shared http_client sync/async split helper#564

Closed
matteomedioli wants to merge 1 commit into
matteo/anthropic-kwargs-bugfixfrom
matteo/split-http-client-helper-GENKGB-1658
Closed

refactor(llm): extract shared http_client sync/async split helper#564
matteomedioli wants to merge 1 commit into
matteo/anthropic-kwargs-bugfixfrom
matteo/split-http-client-helper-GENKGB-1658

Conversation

@matteomedioli

@matteomedioli matteomedioli commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@matteomedioli
matteomedioli requested a review from a team as a code owner July 16, 2026 23:10
@matteomedioli
matteomedioli marked this pull request as draft July 16, 2026 23:15
AnthropicLLM, OpenAILLM, and AzureOpenAILLM each carried an identical
~10-line dance to route an httpx.Client/httpx.AsyncClient http_client
kwarg to the matching SDK client, warning and dropping it otherwise.
Factored into one split_http_client_kwargs helper in llm/utils.py, used
by all three, so future subclasses (e.g. Aura-hosted variants) don't
need a fourth/fifth copy of the same logic. Pure refactor, no behavior
change.
@matteomedioli
matteomedioli force-pushed the matteo/split-http-client-helper-GENKGB-1658 branch from 07da65c to a7a85a7 Compare July 16, 2026 23:17
@matteomedioli
matteomedioli changed the base branch from matteo/base-anthropic-llm-GENKGB-1658 to matteo/anthropic-kwargs-bugfix-GENKGB-1658 July 16, 2026 23:17
@matteomedioli
matteomedioli deleted the matteo/split-http-client-helper-GENKGB-1658 branch July 16, 2026 23:21
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.

1 participant