mirror of
https://github.com/open-webui/computer.git
synced 2026-12-01 09:22:45 -05:00
refac
This commit is contained in:
1 parent
feb27a682f
commit
1b9a346991
3 files changed
+3
-11
No files matched your search
@@ -172,8 +172,6 @@ def _build_skill_create_prompt(user_request: str) -> str:
|
||||
|
||||
def _message_has_real_content(message: dict) -> bool:
|
||||
text = _plain_message_text(message.get("content")).strip()
|
||||
if message.get("role") == "user" and text.startswith("/"):
|
||||
return False
|
||||
return bool(
|
||||
text or message.get("tool_calls") or message.get("reasoning_items") or message.get("output")
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user