From 35aa1049643e6d2b62e8727aedac2d9ef37369e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=93=E9=BC=A0?= <71394853+hamster1963@users.noreply.github.com> Date: Sun, 30 Mar 2025 15:04:55 +0800 Subject: [PATCH] fix: Submit button is missing required body --- components/chat.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/chat.tsx b/components/chat.tsx index 7867cb0..23e9223 100644 --- a/components/chat.tsx +++ b/components/chat.tsx @@ -23,6 +23,10 @@ export function Chat() { const { messages, append, status, stop } = useChat({ id: "primary", + body: { + selectedModelId, + isReasoningEnabled, + }, onError: () => { toast.error("An error occurred, please try again!"); },