Will Miao
303833bbae
fix(llm): catch UnicodeDecodeError when fetching model catalog ( #1099 )
...
resp.json() raises UnicodeDecodeError (not JSONDecodeError) when the
remote body contains invalid UTF-8 bytes, which the exception handler
did not catch and could crash the app. Apply the same fix to both
_load_model_catalog and fetch_ollama_models so they fall back to an
empty catalog. Add regression tests for both paths.
2026-09-06 12:04:16 +08:00
..
2026-08-08 20:12:52 +08:00
2026-08-31 10:01:18 +08:00
2026-08-08 20:12:52 +08:00
2025-02-24 20:41:16 +08:00
2026-09-02 14:33:44 +08:00
2026-08-29 11:31:16 +08:00
2026-04-20 09:52:48 +08:00
2026-08-08 20:12:52 +08:00
2026-08-08 20:12:52 +08:00
2026-08-08 20:12:52 +08:00
2026-09-02 22:01:44 +08:00
2026-08-30 16:28:41 +08:00
2026-08-08 14:30:34 +08:00
2026-02-02 08:30:59 +08:00
2026-08-11 14:08:15 +08:00
2026-08-23 10:09:55 +08:00
2026-08-27 07:58:48 +08:00
2026-08-08 20:12:52 +08:00
2026-09-01 21:14:30 +08:00
2026-04-20 15:20:57 +08:00
2026-04-15 20:42:55 +08:00
2026-08-25 08:19:54 +08:00
2026-08-29 11:31:16 +08:00
2026-08-25 08:19:54 +08:00
2026-08-25 17:38:09 +08:00
2026-08-27 10:08:32 +08:00
2026-08-08 20:12:52 +08:00
2026-08-23 10:09:55 +08:00
2026-07-02 21:27:01 +08:00
2026-08-08 20:12:52 +08:00
2026-09-06 12:04:16 +08:00
2026-08-08 20:12:52 +08:00
2026-08-23 10:09:55 +08:00
2025-10-13 14:39:31 +08:00
2026-08-08 20:12:52 +08:00
2026-08-27 09:53:07 +08:00
2026-08-19 17:51:31 +08:00
2026-08-08 20:12:52 +08:00
2026-09-01 21:14:30 +08:00
2026-08-11 14:08:15 +08:00
2026-08-27 09:53:07 +08:00
2026-08-23 10:09:55 +08:00
2026-09-03 11:38:27 +08:00
2026-08-08 20:12:52 +08:00
2026-08-25 20:36:46 +08:00
2026-08-27 19:32:17 +08:00
2026-08-08 20:12:52 +08:00
2026-09-05 16:56:20 +08:00
2026-08-08 20:12:52 +08:00
2026-08-27 09:53:07 +08:00
2026-08-08 20:12:52 +08:00
2026-08-25 17:38:31 +08:00
2026-09-05 16:56:20 +08:00
2026-08-08 20:12:52 +08:00
2026-08-08 20:12:52 +08:00
2026-09-04 23:53:27 +08:00
2026-08-08 20:12:52 +08:00
2026-08-08 20:12:52 +08:00
2026-09-05 16:56:20 +08:00
2026-08-08 20:12:52 +08:00
2026-07-26 18:33:31 +08:00