Spaces:
Sleeping
Sleeping
vickysrm commited on
Commit ·
8e93416
1
Parent(s): fb272ee
fix: 50-word threshold + log summary errors
Browse files- routers/session.py +2 -2
routers/session.py
CHANGED
|
@@ -133,8 +133,8 @@ async def session_websocket(websocket: WebSocket, session_id: str):
|
|
| 133 |
await websocket.send_json({"type": "summary", "text": summary_text, "timestamp": ts})
|
| 134 |
append_summary(session_id, {"text": summary_text, "timestamp": ts})
|
| 135 |
buf["last_summary_at"] = buf["word_count"]
|
| 136 |
-
except Exception:
|
| 137 |
-
|
| 138 |
|
| 139 |
elif msg_type == "behavior":
|
| 140 |
data = message.get("data", {})
|
|
|
|
| 133 |
await websocket.send_json({"type": "summary", "text": summary_text, "timestamp": ts})
|
| 134 |
append_summary(session_id, {"text": summary_text, "timestamp": ts})
|
| 135 |
buf["last_summary_at"] = buf["word_count"]
|
| 136 |
+
except Exception as e:
|
| 137 |
+
print(f"Summary generation error: {e}")
|
| 138 |
|
| 139 |
elif msg_type == "behavior":
|
| 140 |
data = message.get("data", {})
|