From 7ff3ed9193feab34b95ffea6ad9482466cb6e725 Mon Sep 17 00:00:00 2001 From: LE Quoc Dat Date: Thu, 24 Apr 2025 01:38:17 +0100 Subject: [PATCH] populate models properly --- frontend/src/app/(dashboard)/agents/[threadId]/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') {