From 34f069960c1d49702c4728eabcea65d92d4815d7 Mon Sep 17 00:00:00 2001 From: Will Chen Date: Fri, 11 Apr 2025 13:39:24 -0700 Subject: [PATCH] disable submit button if no provider is setup --- src/components/chat/ChatInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsx index 4d2f0b1..a945e66 100644 --- a/src/components/chat/ChatInput.tsx +++ b/src/components/chat/ChatInput.tsx @@ -19,7 +19,7 @@ interface ChatInputProps { export function ChatInput({ chatId, onSubmit }: ChatInputProps) { const [inputValue, setInputValue] = useAtom(chatInputValueAtom); const textareaRef = useRef(null); - const { settings, updateSettings } = useSettings(); + const { settings, updateSettings, isAnyProviderSetup } = useSettings(); const { streamMessage, isStreaming, setIsStreaming, error, setError } = useStreamChat(); const [selectedAppId] = useAtom(selectedAppIdAtom); @@ -117,7 +117,7 @@ export function ChatInput({ chatId, onSubmit }: ChatInputProps) { ) : (