Skip to content

Commit 2b747c6

Browse files
committed
fix: automated summarization, role-based notifications, and refined AI keywords
1 parent 65ce10d commit 2b747c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

backend/main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,15 @@ def get_now_ist():
604604
except Exception:
605605
pass
606606

607+
# Generate a concise 1-2 line summary for the UI
608+
summary = text[:100] + "..." if len(text) > 100 else text
609+
if gemini_analysis["image_description"]:
610+
summary = f"Image Report: {summary}"
611+
607612
return TicketResponse(
613+
ticket_id=ticket_id,
608614
summary=summary,
615+
text=text,
609616
category=classification["category"],
610617
subcategory=classification["subcategory"],
611618
priority=classification["priority"],

0 commit comments

Comments
 (0)