fix(tools): make image_understand image_url optional and remove unused operation variable

Change image_url from required to optional in both operation_tool.py and
tool_service.py for image_understand operation, avoiding parameter validation
conflict with uploaded_files priority logic.
Remove unused operation variable from OpenClawTool.execute().
This commit is contained in:
miao
2026-04-10 13:31:09 +08:00
parent 7842435321
commit 8497c955f9
3 changed files with 4 additions and 5 deletions

View File

@@ -730,8 +730,8 @@ class ToolService:
{
"name": "image_url",
"type": "string",
"description": "必须提供,要分析的图片 URL 或 base64 data URI",
"required": True
"description": "要分析的图片 URL 或 base64 data URI",
"required": False
}
]
else: