diff --git a/frontend/src/app/(dashboard)/agents/[threadId]/page.tsx b/frontend/src/app/(dashboard)/agents/[threadId]/page.tsx index 56ab42b3..83f7a53b 100644 --- a/frontend/src/app/(dashboard)/agents/[threadId]/page.tsx +++ b/frontend/src/app/(dashboard)/agents/[threadId]/page.tsx @@ -579,7 +579,7 @@ export default function ThreadPage({ params }: { params: Promise } }; }, [threadId]); - const handleSubmitMessage = useCallback(async (message: string) => { + const handleSubmitMessage = useCallback(async (message: string, options?: { model_name?: string; enable_thinking?: boolean }) => { if (!message.trim()) return; setIsSending(true); @@ -601,7 +601,7 @@ export default function ThreadPage({ params }: { params: Promise } try { const results = await Promise.allSettled([ addUserMessage(threadId, message), - startAgent(threadId) + startAgent(threadId, options) ]); if (results[0].status === 'rejected') {