MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / make_client

Function make_client

tests/test_header_case_sensitivity.py:29–31  ·  view source on GitHub ↗
(client_cls: ClientClass, **kwargs: Any)

Source from the content-addressed store, hash-verified

27
28
29def make_client(client_cls: ClientClass, **kwargs: Any) -> Anthropic | AsyncAnthropic:
30 kwargs.setdefault("api_key", api_key)
31 return client_cls(base_url=base_url, _strict_response_validation=True, **kwargs)
32
33
34def build(client: Anthropic | AsyncAnthropic, **options: Any) -> httpx2.Request:

Calls

no outgoing calls

Tested by

no test coverage detected