Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: token counter visibility
Louis275bc88ff96c
diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsxindex e776ffc07..04c1aff31 100644--- a/web-app/src/containers/ChatInput.tsx+++ b/web-app/src/containers/ChatInput.tsx@@ -154,12 +154,6 @@ const ChatInput = ({const [isDragOver, setIsDragOver] = useState(false)const [hasMmproj, setHasMmproj] = useState(false)const activeModels = useAppState(useShallow((state) => state.activeModels))- const hasActiveModels = useMemo(- () =>- activeModels.length > 0 &&- activeModels.some((e) => e === selectedModel?.id),- [activeModels, selectedModel?.id]- )// Jan Browser Extension hookconst {@@ -1694,7 +1688,6 @@ const ChatInput = ({<div className="flex items-center gap-2">{selectedProvider === 'llamacpp' &&- hasActiveModels &&tokenCounterCompact &&!initialMessage &&(threadMessages?.length > 0 || prompt.trim().length > 0) && (@@ -1762,7 +1755,6 @@ const ChatInput = ({)}{selectedProvider === 'llamacpp' &&- hasActiveModels &&!tokenCounterCompact &&!initialMessage &&(threadMessages?.length > 0 || prompt.trim().length > 0) && (