mirror of
https://github.com/open-webui/computer.git
synced 2026-11-22 21:50:43 -05:00
refac
This commit is contained in:
1 parent
35d6d26021
commit
5f710060be
1 file changed
+4
-1
@@ -67,7 +67,10 @@ def _format_tool_call(item: dict) -> str | None:
|
||||
if item.get("type") != "function_call" or item.get("status") != "in_progress":
|
||||
return None
|
||||
|
||||
return f"\n\n`{item.get('name', 'tool')}`\n\n"
|
||||
arguments = item.get("arguments")
|
||||
title = arguments.get("title") if isinstance(arguments, dict) else None
|
||||
name = str(title or item.get("name") or "tool").strip() or "tool"
|
||||
return f"\n\n`{name}`\n\n"
|
||||
|
||||
|
||||
async def _authenticate(request: Request) -> str:
|
||||
|
||||
Reference in new issue
Block a user