-
fix: remove FakeListLLM fallback, log silent exceptions (#3194)
发布于
2026-03-28 00:41:59 +00:00 - fix: remove FakeListLLM fallback, log silent exceptions in history and settings routes
- Remove FakeListLLM fallback in llm_utils.py; raise ValueError instead
so missing models surface immediately rather than silently returning
useless responses. - Add logger.exception calls in history_routes.py report retrieval
except blocks so 500 errors leave a trace. - Add logger.warning calls in history_routes.py progress_log parsing
except blocks so malformed JSON is logged. - Fix incorrect error message in settings_routes.py (said "Failed to
save settings" in a model-retrieval endpoint).
- fix(test): update test to expect ValueError after FakeListLLM removal
The FakeListLLM fallback was removed in this PR, so the test that
expected FakeListLLM to be returned now expects ValueError instead.
The redundant second test case was consolidated into one.下载附件