perf: cache live model lookups briefly#1378
Conversation
|
Nice — this directly closes the TODO already sitting in A few thoughts from skimming the diff:
Tests cover hit/expiry/profile/mutation, which is the right square. Will defer merge to maintainer review. |
|
Released as part of v0.50.252 — thanks @NocGeek! This PR was merged into the v0.50.252 release batch via #1387 alongside 5 other contributor fixes. The full CHANGELOG entry is at https://github.com/nesquena/hermes-webui/blob/master/CHANGELOG.md. Pre-release verification: 3507 pytest tests pass, full QA harness pass (20 structural + 11 browser API + 23 Agent Browser CDP), Opus mentor APPROVED with two non-blocking follow-ups applied during the release batch (force=True on agent redactor, debug-log on profile fallback). Closing this PR — the change is live on master. |
Summary
/api/models/liveTests
python3 -m py_compile api/routes.py tests/test_live_models_ttl_cache.pypython -m pytest tests/test_live_models_ttl_cache.py tests/test_opencode_providers.py::test_live_models_handler_delegates_to_provider_model_ids tests/test_opencode_providers.py::test_live_models_ui_no_longer_skips_any_providerpython -m pytest tests/test_byok_model_dropdown.py tests/test_credential_pool_providers.py tests/test_custom_providers_in_panel.py tests/test_issue1094_provider_bugs.py tests/test_provider_management.py tests/test_issues_373_374_375.py tests/test_live_models_ttl_cache.py tests/test_opencode_providers.pyLocal focused result:
6 passedLocal broader provider/model result:
120 passed