feat:优化屎山
This commit is contained in:
@@ -345,7 +345,7 @@ class ZImageTurbo(PluginBase):
|
||||
async def execute_llm_tool(self, tool_name: str, arguments: dict, bot: WechatHookClient, from_wxid: str) -> dict:
|
||||
"""执行LLM工具调用,供AIChat插件调用"""
|
||||
if tool_name != "generate_image":
|
||||
return {"success": False, "message": "未知的工具名称"}
|
||||
return None
|
||||
|
||||
try:
|
||||
prompt = arguments.get("prompt", "")
|
||||
|
||||
Reference in New Issue
Block a user