From d6b5c25d299635ee365469b4a86e4891586b2963 Mon Sep 17 00:00:00 2001 From: George Zhao <38124587+CreatorZZY@users.noreply.github.com> Date: Sun, 18 May 2025 18:37:08 +0800 Subject: [PATCH] fix: remove infinite token display for max count and simplify context count rendering. (#6103) Co-authored-by: George Zhao --- .../src/pages/home/Inputbar/TokenCount.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/renderer/src/pages/home/Inputbar/TokenCount.tsx b/src/renderer/src/pages/home/Inputbar/TokenCount.tsx index c2a0ee5068..b7ca3b351b 100644 --- a/src/renderer/src/pages/home/Inputbar/TokenCount.tsx +++ b/src/renderer/src/pages/home/Inputbar/TokenCount.tsx @@ -22,18 +22,6 @@ const TokenCount: FC = ({ estimateTokenCount, inputTokenCount, contextCou } const formatMaxCount = (max: number) => { - if (max == 100) { - return ( - - ∞ - - ) - } return max.toString() } @@ -43,7 +31,7 @@ const TokenCount: FC = ({ estimateTokenCount, inputTokenCount, contextCou {t('chat.input.context_count.tip')} - {contextCount.current} / {contextCount.max == 20 ? '∞' : contextCount.max} + {contextCount.current} / {contextCount.max}