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

Method __init__

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

Source from the content-addressed store, hash-verified

159
160class ModelFallback(Middleware):
161 def __init__(self, fallback_model: str) -> None:
162 self.fallback_model = fallback_model
163
164 def _fallback(self, request: APIRequest) -> APIRequest:
165 body = request.json

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected