Update ui/ui_core.py
Browse files- ui/ui_core.py +1 -1
ui/ui_core.py
CHANGED
|
@@ -162,7 +162,7 @@ def create_ui(agent: TxAgent):
|
|
| 162 |
for update in generator:
|
| 163 |
try:
|
| 164 |
if isinstance(update, list):
|
| 165 |
-
cleaned = [msg for msg in update if
|
| 166 |
not (msg.role == "assistant" and
|
| 167 |
hasattr(msg, 'content') and
|
| 168 |
msg.content.strip().startswith("🧰"))]
|
|
|
|
| 162 |
for update in generator:
|
| 163 |
try:
|
| 164 |
if isinstance(update, list):
|
| 165 |
+
cleaned = [msg for msg in update if hasattr(msg, 'role') and
|
| 166 |
not (msg.role == "assistant" and
|
| 167 |
hasattr(msg, 'content') and
|
| 168 |
msg.content.strip().startswith("🧰"))]
|