← News

AI coding

LangChain adds custom client support to its Anthropic adapter

ChatAnthropic 1.7.13 lets applications supply an HTTP or SDK client, with different ownership of connection settings.

Published: 2026-11-30 02:00 UTCUpdated: 2026-11-30 02:00 UTCSource date: 2026-11-26

Official announcement

Released November 26 in Malaysia, langchain-anthropic 1.7.13 lets applications supply their own HTTP client or Anthropic SDK client to ChatAnthropic. With a custom HTTP client, the adapter still supplies connection settings to the SDK. With a complete SDK client, settings come from that client. The sync and async paths are configured separately, and callers close the clients they supply.

Analysis

Before migrating live traffic, use a local mock to force one timeout through each path. Compare the request count, destination, and timeout behavior. A background service may configure only an async client while a maintenance script still uses the default sync client. Testing the two paths separately makes that mismatch visible without any live model calls.

What remains unverified

Whether existing proxy, authentication, or retry behavior carries forward depends on the supplied client and the dependency versions in the application.


Related articles