From 711aa672f211cd75243c27fb3060d0950753311a Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Fri, 18 Apr 2025 17:56:48 +0200 Subject: [PATCH] fix: Increase mac threshold tokens for tokens (#167) --- settings/ChatAssistantSettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/ChatAssistantSettings.cpp b/settings/ChatAssistantSettings.cpp index bad22af..51a0ce6 100644 --- a/settings/ChatAssistantSettings.cpp +++ b/settings/ChatAssistantSettings.cpp @@ -47,7 +47,7 @@ ChatAssistantSettings::ChatAssistantSettings() chatTokensThreshold.setLabelText(Tr::tr("Chat history token limit:")); chatTokensThreshold.setToolTip(Tr::tr("Maximum number of tokens in chat history. When " "exceeded, oldest messages will be removed.")); - chatTokensThreshold.setRange(1, 900000); + chatTokensThreshold.setRange(1, std::numeric_limits::max()); chatTokensThreshold.setDefaultValue(8000); linkOpenFiles.setSettingsKey(Constants::CA_LINK_OPEN_FILES);