feat:优化屎山
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user