You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(adapters): cover _supports_composed_adapters on in-tree backends #1824
If an in-tree backend loses _supports_composed_adapters = True, every adapter function call on it fails with ValueError: Backend ... does not support composed adapters. No unit test catches this.
#1700 removed the flag along with its check. When it was rebased as #1821, the check came back in adapter.py (defaulting to False) but the opt-ins on LocalHFBackend, OpenAIBackend and OllamaModelBackend didn't, so every adapter function call failed until the opt-ins were restored. Only the HF nightly caught it. The tests that covered the flag were in test_shims.py, which #1821 deletes.
Proposed tests
Parametrized check that all three backends set the flag to True.
AdapterMixin.resolve_adapter on a backend without the flag raises that ValueError.
Activity
test(adapters): cover _supports_composed_adapters on in-tree backends
test(adapters): cover _supports_composed_adapters on in-tree backends (…