feat:优化屎山

This commit is contained in:
2025-12-12 18:35:39 +08:00
parent 6156064f56
commit c1983172af
10 changed files with 1257 additions and 582 deletions

View File

@@ -322,7 +322,7 @@ class WeatherPlugin(PluginBase):
"""执行LLM工具调用供AIChat插件调用"""
try:
if tool_name != "query_weather":
return {"success": False, "message": "未知的工具名称"}
return None
# 从 arguments 中获取用户信息
user_wxid = arguments.get("user_wxid", from_wxid)