mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #12289] [CLOSED] Fix: num_keep param explanation/exemplified (en-US) #45940
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12289
Author: @rgaricano
Created: 4/1/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (5)
83a76c0FIX: num_keep param explanation/exemplified (en-US)4331c52Update by outside exchanged lines14056fcUpdate translation.jsonaefbf4eUPD: Spanish Translation (es-ES) v0.6.06598681Merge branch 'open-webui:dev' into dev📊 Changes
2 files changed (+95 additions, -94 deletions)
View changed files
📝
src/lib/i18n/locales/en-US/translation.json(+2 -2)📝
src/lib/i18n/locales/es-ES/translation.json(+93 -92)📄 Description
Def. n_keep / num_keep:
First N, no Last N !!!
In Params Configs it's wrong exemplified, as:
"This option controls how many tokens are preserved when refreshing the context. For example, if set to 2, the last 2 tokens of the conversation context will be retained. Preserving context can help maintain the continuity of a conversation, but it may reduce the ability to respond to new topics."
When have to be, as:
"This option controls how many tokens are preserved when refreshing the context. For example, if set to 2, the first 2 tokens of the conversation context will be retained. Preserving context can help maintain the continuity of a conversation, but it may reduce the ability to respond to new topics."
Ollama's num_keep func.:
c001b98087/runner/ollamarunner/runner.go (L124-L131)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.