diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx index 63a396f34..01a33260d 100644 --- a/web-app/src/containers/ChatInput.tsx +++ b/web-app/src/containers/ChatInput.tsx @@ -10,7 +10,6 @@ import { IconPaperclip, IconWorld, IconAtom, - IconMicrophone, IconEye, IconTool, IconCodeCircle2, @@ -29,6 +28,7 @@ import { SystemEvent } from '@/types/events' import { getTools } from '@/services/mcp' import { useChat } from '@/hooks/useChat' import DropdownModelProvider from '@/containers/DropdownModelProvider' +import { ModelLoader } from '@/containers/loaders/ModelLoader' type ChatInputProps = { className?: string @@ -44,7 +44,8 @@ const ChatInput = ({ const textareaRef = useRef(null) const [isFocused, setIsFocused] = useState(false) const [rows, setRows] = useState(1) - const { streamingContent, updateTools, abortControllers } = useAppState() + const { streamingContent, updateTools, abortControllers, loadingModel } = + useAppState() const { prompt, setPrompt } = usePrompt() const { t } = useTranslation() const { spellCheckChatInput } = useGeneralSetting() @@ -53,6 +54,8 @@ const ChatInput = ({ const { selectedModel } = useModelProvider() const { sendMessage } = useChat() + console.log(model) + useEffect(() => { const handleFocusIn = () => { if (document.activeElement === textareaRef.current) { @@ -173,17 +176,21 @@ const ChatInput = ({ streamingContent && 'opacity-50 pointer-events-none' )} > - + {model?.provider === 'llama.cpp' && loadingModel ? ( + + ) : ( + + )} {/* File attachment - always available */}
- {/* Microphone - always available */} -
+ {/* Microphone - always available - Temp Hide */} + {/*
-
+
*/} {selectedModel?.capabilities?.includes('vision') && (
diff --git a/web-app/src/containers/DropdownAssistant.tsx b/web-app/src/containers/DropdownAssistant.tsx index 51cdc4c7b..3c9b43936 100644 --- a/web-app/src/containers/DropdownAssistant.tsx +++ b/web-app/src/containers/DropdownAssistant.tsx @@ -41,7 +41,7 @@ const DropdownAssistant = () => {
{ console.log('edit clicked', selectedAssistant) if (selectedAssistant) { @@ -64,7 +64,7 @@ const DropdownAssistant = () => { align="start" > {assistants.map((assistant) => ( -
+
{ {assistant.name} -
+
- Assistant + Assistants
diff --git a/web-app/src/routes/threads/$threadId.tsx b/web-app/src/routes/threads/$threadId.tsx index 01b494eae..31f64f143 100644 --- a/web-app/src/routes/threads/$threadId.tsx +++ b/web-app/src/routes/threads/$threadId.tsx @@ -11,7 +11,7 @@ import ChatInput from '@/containers/ChatInput' import { useShallow } from 'zustand/react/shallow' import { ThreadContent } from '@/containers/ThreadContent' import { StreamingContent } from '@/containers/StreamingContent' -import { ModelLoader } from '@/containers/loaders/ModelLoader' + import { useMessages } from '@/hooks/useMessages' import { fetchMessages } from '@/services/messages' import { useAppState } from '@/hooks/useAppState' @@ -31,7 +31,7 @@ function ThreadDetail() { const { currentThreadId, getThreadById, setCurrentThreadId } = useThreads() const { setCurrentAssistant, assistants } = useAssistant() const { setMessages } = useMessages() - const { streamingContent, loadingModel } = useAppState() + const { streamingContent } = useAppState() const { messages } = useMessages( useShallow((state) => ({ @@ -172,9 +172,6 @@ function ThreadDetail() {
- {thread?.model?.provider === 'llama.cpp' && loadingModel && ( - - )}