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

Method __init__

tests/test_middleware.py:135–136  ·  view source on GitHub ↗
(self, fallback_model: str)

Source from the content-addressed store, hash-verified

133
134class ModelFallback(Middleware):
135 def __init__(self, fallback_model: str) -> None:
136 self.fallback_model = fallback_model
137
138 def _fallback(self, request: APIRequest) -> APIRequest:
139 body = request.json

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected