Skip to content

test(adapters): cover _supports_composed_adapters on in-tree backends #1824

Closed

Description

@planetf1

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

  1. self-assigned this
    on Nov 13, 2026
  2. added a commit that references this issue on Nov 16, 2026
    0a8fac0
  3. added a commit that references this issue on Nov 19, 2026
    f6ab6e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions