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);