xiaozhi-esp32-server/main/xiaozhi-server/plugins_func/functions
Jacob 15d9b0fba1
fix: harden weather and news plugins (#3465)
* fix: harden weather and news plugins

* 修掉天气新闻插件的三处鲁棒性缺陷

城市查询不再写死国内范围,境外城市也能查到。实时天气和七天预报要都拿到才走 JSON,缺一个就整体退回网页路径,不产出残缺报告。网页抓取加上跟随跳转,旧链接的 302 也能拿到内容。城市查不到时不再让用户去核对地名,多数情况是密钥失效。报告补上气压和降水量。新闻 URL 拼接抽成纯函数,配了 23 项单测。

---------

Co-authored-by: hrz <1710360675@qq.com>
2026-10-29 09:46:01 +08:00
..
call_device.py 同步工具异步化处理 2026-07-07 14:45:50 +08:00
change_role.py feat: 为多个模块添加类型注解以增强代码可读性 2026-01-25 17:47:52 +08:00
get_news_from_chinanews.py 同步工具异步化处理 2026-07-07 14:45:50 +08:00
get_news_from_newsnow.py fix: harden weather and news plugins (#3465) 2026-10-29 09:46:01 +08:00
get_time.py update:强化小智提示词 2025-07-08 16:59:38 +08:00
get_weather.py fix: harden weather and news plugins (#3465) 2026-10-29 09:46:01 +08:00
handle_exit_intent.py fix: 在模型和工具调用期间进行打断后说完话错误退出问题 2026-04-23 10:17:43 +08:00
hass_init.py refactor: 合并 HA 设备控制插件为 hass_state 模块 2026-07-29 09:58:26 +08:00
hass_play_music.py 同步工具异步化处理 2026-07-07 14:45:50 +08:00
hass_state.py refactor: 合并 HA 设备控制插件为 hass_state 模块 2026-07-29 09:58:26 +08:00
play_music.py 同步工具异步化处理 2026-07-07 14:45:50 +08:00
search_from_ragflow.py 同步工具异步化处理 2026-07-07 14:45:50 +08:00
web_search.py feat(web_search): 新增Serply搜索源 2026-09-17 16:45:28 -04:00