mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #12107] issue: num_keep Setting Doesn't Limit Context Retention as Expected #32001
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @weissfl on GitHub (Mar 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12107
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Windows 10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When setting "Tokens To Keep On Context Refresh (num_keep)" to 1, the model should retain only 1 token from previous messages. If asked to recall earlier information, it should not remember details beyond this limit.
Actual Behavior
Despite setting "Tokens To Keep On Context Refresh (num_keep)" to 1, the model retains more than 1 token and successfully recalls information from previous messages.
Steps to Reproduce
Unexpected Behavior:
The model still remembers the name, indicating that more than 1 token is retained, despite the setting.
Logs & Screenshots
Additional Information
No response