auto-git:
[change] backend/chat_memory.py
This commit is contained in:
@@ -90,7 +90,8 @@ def _attachment_summary(raw_value: Any) -> str:
|
|||||||
except Exception:
|
except Exception:
|
||||||
return ""
|
return ""
|
||||||
labels: List[str] = []
|
labels: List[str] = []
|
||||||
for item in items if isinstance(items, list) else []:
|
iterable = items if isinstance(items, list) else []
|
||||||
|
for item in iterable:
|
||||||
if not isinstance(item, dict):
|
if not isinstance(item, dict):
|
||||||
continue
|
continue
|
||||||
name = str(item.get("name") or item.get("source_path") or "").strip()
|
name = str(item.get("name") or item.get("source_path") or "").strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user