feat(file-summary): 增加前端汇总面板
This commit is contained in:
@@ -10,6 +10,7 @@ from .services import (
|
||||
send_message,
|
||||
stream_message,
|
||||
)
|
||||
from .models import FileAttachment, FileSummaryBatch
|
||||
|
||||
|
||||
@login_required
|
||||
@@ -49,6 +50,8 @@ def workspace(request: HttpRequest) -> HttpResponse:
|
||||
"conversations": conversations,
|
||||
"current_conversation": current,
|
||||
"messages": current.messages.all() if current else [],
|
||||
"attachments": FileAttachment.objects.filter(conversation=current).order_by("original_name", "-version_no") if current else [],
|
||||
"summary_batches": FileSummaryBatch.objects.filter(conversation=current).prefetch_related("node_runs").order_by("-created_at")[:5] if current else [],
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user