From 7327c9a18a65deaeefc5e2709e580df9093941f6 Mon Sep 17 00:00:00 2001 From: josh <144584931+dancer@users.noreply.github.com> Date: Mon, 8 Sep 2025 11:08:45 +0100 Subject: [PATCH] fix: reasoning model does not allow images (#1160) --- components/multimodal-input.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/multimodal-input.tsx b/components/multimodal-input.tsx index c601ff1..e314e43 100644 --- a/components/multimodal-input.tsx +++ b/components/multimodal-input.tsx @@ -323,7 +323,7 @@ function PureMultimodalInput({ /> - + {status === 'submitted' ? ( @@ -360,10 +360,14 @@ export const MultimodalInput = memo( function PureAttachmentsButton({ fileInputRef, status, + selectedModelId, }: { fileInputRef: React.MutableRefObject; status: UseChatHelpers['status']; + selectedModelId: string; }) { + const isReasoningModel = selectedModelId === 'chat-model-reasoning'; + return (