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

Function beta_headers

tests/lib/test_refusal_fallback.py:117–119  ·  view source on GitHub ↗
(respx_mock: MockRouter)

Source from the content-addressed store, hash-verified

115
116
117def beta_headers(respx_mock: MockRouter) -> list[str | None]:
118 calls = cast("list[MockRequestCall]", respx_mock.calls)
119 return [call.request.headers.get("anthropic-beta") for call in calls]
120
121
122def without_speed(body: dict[str, Any]) -> dict[str, Any]:

Calls 1

getMethod · 0.45

Tested by

no test coverage detected