test: main-alias aux pin is not stale in the backend switch report

Backend half of #97310 (the desktop banner has its own vitest case in the salvaged commit).
This commit is contained in:
teknium1
2026-09-13 12:42:49 -07:00
committed by Teknium
parent d2eb7e1c01
commit bc0edb8a5b

View File

@@ -12,6 +12,8 @@ def test_local_endpoint_pins_are_excluded_from_stale_aux_report():
"vision": {"provider": "openai", "model": "llama3.2-vision:11b", "base_url": "http://192.168.1.10:11434/v1"},
"compression": {"provider": "openai", "model": "gpt-4o-mini", "base_url": "https://api.example.com/v1"},
"curator": {"provider": "openai", "model": "gpt-4o-mini"},
# "main" follows the main provider by definition (#97310); Moonshot's Hermes guide ships it.
"review": {"provider": "main", "model": "kimi-k3"},
}}
stale = _stale_aux_pins(cfg, "ollama-cloud")
# Only the pins that can still bill a provider survive: public custom URL, no base_url.