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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected