feat: remote device connection as tool (#2506)

* feat: remote device connection as tool

* fix: test

* fix: fix issues

* fix: ruff

* fix: mini issues

* fix: bugs

* fix: tests and mini issues
This commit is contained in:
Alex authored and GitHub committed 2026-05-28 18:23:25 +01:00
1 parent 0897dacf35
commit 8e0f7ced5f
64 files changed
+6733 -56

No files matched your search

+8 -1
View File
@@ -74,7 +74,14 @@ def _write_together_yaml(directory: Path) -> Path:
@pytest.fixture(autouse=True)
def _reset_registry():
def _reset_registry(monkeypatch):
# Builtin openai_compatible catalogs (e.g. deepseek.yaml) activate when
# their api_key_env is present in os.environ, which the openai_compatible
# provider reads directly, independent of the patched settings. Clear it
# so a key leaked by another test (or present in the dev .env) doesn't add
# extra models to the exact-match assertions below. Mirrors the delenv
# guard in test_model_registry_yaml.py.
monkeypatch.delenv("DEEPSEEK_API_KEY", raising=False)
ModelRegistry.reset()
yield
ModelRegistry.reset()