mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-07 16:21:23 +00:00
fb8bf2f5bd
- Extract the MoA @moa:/moa/ prefix-stripping branch of _resolve_compatible_session_model_state into a new _moa_fast_path_model_state() helper. Inlining it had pushed `catalog = get_available_models()` just past the 6000-char source window that tests/test_issue1855_resolve_model_provider_fast_path.py:: TestFastPathSourceShape scans to guard the #1855 fast-path/ catalog-call ordering, breaking that regression test after rebasing onto current master. - Re-add gpt-4o to the refreshed Copilot static fallback list. It's a real Copilot-served model and tests/test_issues_373_374_375.py::TestStaleModelListCleanup:: test_copilot_list_unchanged asserts the Copilot list keeps it even as #374 removes it from the generic OpenAI list. The live Copilot catalog probe remains authoritative; this only affects the cold-start/probe-miss fallback. Verification: ./scripts/test.sh tests/test_issue1855_resolve_model_provider_fast_path.py tests/test_issues_373_374_375.py tests/test_issue5057_moa_webui_route.py tests/test_copilot_provider_model_settings_not_allowlist.py tests/test_moa_model_picker_provider.py tests/test_pr1970_lmstudio_base_url_fallback.py -q -> 73 passed in 3.60s ./scripts/test.sh tests/ -k "config or provider or model or copilot or moa or lmstudio" -q -> 1745 passed, 2 skipped, 9775 deselected, 1 xpassed in 68.57s