From 407d3b11c00cf97d491ac5f4ef18bbeceebeb7b8 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Thu, 24 Apr 2025 21:44:49 +0200 Subject: [PATCH] fix: Change maximum limit of chat tokens --- settings/ChatAssistantSettings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings/ChatAssistantSettings.cpp b/settings/ChatAssistantSettings.cpp index 51a0ce6..ef1a821 100644 --- a/settings/ChatAssistantSettings.cpp +++ b/settings/ChatAssistantSettings.cpp @@ -47,8 +47,8 @@ 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, std::numeric_limits::max()); - chatTokensThreshold.setDefaultValue(8000); + chatTokensThreshold.setRange(1, 99999999); + chatTokensThreshold.setDefaultValue(20000); linkOpenFiles.setSettingsKey(Constants::CA_LINK_OPEN_FILES); linkOpenFiles.setLabelText(Tr::tr("Sync open files with assistant by default"));