Ali2206 commited on
Commit
23a3b8a
·
verified ·
1 Parent(s): 05fecdb

Update ui/ui_core.py

Browse files
Files changed (1) hide show
  1. 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 (hasattr(msg, 'role') and
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("🧰"))]