diff --git a/src/app/chat/[id]/page.tsx b/src/app/chat/[id]/page.tsx index f634e79..585b0fb 100644 --- a/src/app/chat/[id]/page.tsx +++ b/src/app/chat/[id]/page.tsx @@ -13,6 +13,7 @@ import { PromptOptimizer } from '@/components/features/PromptOptimizer'; import { LinkPreviewModal } from '@/components/features/LinkPreviewModal'; import { ExportDropdown } from '@/components/features/ExportDropdown'; import { ShareModal } from '@/components/features/ShareModal'; +import { SummaryButton } from '@/components/features/SummaryGenerator'; import { cn } from '@/lib/utils'; import { useConversation, useConversations } from '@/hooks/useConversations'; import { useStreamChat, type ChatMessage } from '@/hooks/useStreamChat'; @@ -441,7 +442,7 @@ export default function ChatPage({ params }: PageProps) { } return ( -
+
{/* 侧边栏 */} @@ -557,6 +558,17 @@ export default function ChatPage({ params }: PageProps) { )} + {/* 智能摘要按钮 */} + ({ + role: m.role, + content: m.content, + }))} + hasSummary={!!conversation?.summary} + existingSummary={conversation?.summary} + /> +
{/* 固定底部输入框 */} -
+
{isStreaming && (