diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index 5a525d82..411da94b 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -369,21 +369,6 @@ export const BaseChat = React.forwardRef(
-
- -
-
( 0 || isStreaming || uploadedFiles.length > 0} isStreaming={isStreaming} + disabled={enabledProviders.length === 0} onClick={(event) => { if (isStreaming) { handleStop?.(); @@ -541,6 +527,20 @@ export const BaseChat = React.forwardRef( disabled={isStreaming} /> {chatStarted && {() => }} + setIsModelSettingsCollapsed(!isModelSettingsCollapsed)} + disabled={enabledProviders.length === 0} + > +
+ {isModelSettingsCollapsed ? {model} : } +
{input.length > 3 ? (
diff --git a/app/components/chat/SendButton.client.tsx b/app/components/chat/SendButton.client.tsx index 59e5e52a..c5aa8304 100644 --- a/app/components/chat/SendButton.client.tsx +++ b/app/components/chat/SendButton.client.tsx @@ -3,25 +3,29 @@ import { AnimatePresence, cubicBezier, motion } from 'framer-motion'; interface SendButtonProps { show: boolean; isStreaming?: boolean; + disabled?: boolean; onClick?: (event: React.MouseEvent) => void; onImagesSelected?: (images: File[]) => void; } const customEasingFn = cubicBezier(0.4, 0, 0.2, 1); -export const SendButton = ({ show, isStreaming, onClick }: SendButtonProps) => { +export const SendButton = ({ show, isStreaming, disabled, onClick }: SendButtonProps) => { return ( {show ? ( { event.preventDefault(); - onClick?.(event); + if (!disabled) { + onClick?.(event); + } }} >