Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: hide token counter when using agent mode

Faisal Amir14d9ce9f07d2
diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx
index 06e6807fb..3133d7bf2 100644
--- a/web-app/src/containers/ChatInput.tsx
+++ b/web-app/src/containers/ChatInput.tsx
@@ -1881,6 +1881,7 @@ const ChatInput = memo(function ChatInput({
<div className="flex items-center gap-2">
{selectedProvider === 'llamacpp' &&
tokenCounterCompact &&
+ !effectiveAgentMode &&
!initialMessage &&
(threadMessages?.length > 0 || prompt.trim().length > 0) && (
<div className="flex-1 flex justify-center">
@@ -1948,6 +1949,7 @@ const ChatInput = memo(function ChatInput({
{selectedProvider === 'llamacpp' &&
isModelActive &&
+ !effectiveAgentMode &&
!tokenCounterCompact &&
!initialMessage &&
(threadMessages?.length > 0 || prompt.trim().length > 0) && (