mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
* fix: harden weather and news plugins * 修掉天气新闻插件的三处鲁棒性缺陷 城市查询不再写死国内范围,境外城市也能查到。实时天气和七天预报要都拿到才走 JSON,缺一个就整体退回网页路径,不产出残缺报告。网页抓取加上跟随跳转,旧链接的 302 也能拿到内容。城市查不到时不再让用户去核对地名,多数情况是密钥失效。报告补上气压和降水量。新闻 URL 拼接抽成纯函数,配了 23 项单测。 --------- Co-authored-by: hrz <1710360675@qq.com> |
||
|---|---|---|
| .. | ||
| config | ||
| core | ||
| plugins_func | ||
| __init__.py | ||
| conftest.py | ||
| test_llm.py | ||
| test_manage_api_client_lifecycle.py | ||
| test_memory.py | ||
| test_rag.py | ||
| test_smoke.py | ||
| test_stt.py | ||
| test_tts.py | ||