fix(tools): fix OpenClaw connection test and multimodal format compatibility
- Use safe .get() for server URL to avoid KeyError - Support both api_key and token in connection test auth - Add OpenAI/Volcano image format (image_url) support - Add aiohttp import in _test_openclaw_connection
This commit is contained in:
@@ -642,7 +642,6 @@ class AgentRunService:
|
||||
logger.info(f"处理了 {len(processed_files)} 个文件,provider={provider}")
|
||||
#================= 为 OpenClaw 工具注入运行时上下文==========
|
||||
for t in tools:
|
||||
logger.info(f"检查工具: {type(t).__name__}, has_tool_instance={hasattr(t, 'tool_instance')}, is_openclaw={getattr(getattr(t, 'tool_instance', None), '_is_openclaw', 'N/A')}")
|
||||
if hasattr(t, 'tool_instance') and hasattr(t.tool_instance, '_is_openclaw'):
|
||||
if t.tool_instance._is_openclaw:
|
||||
t.tool_instance._user_id = user_id or "anonymous"
|
||||
|
||||
Reference in New Issue
Block a user