mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 10:04:14 -05:00
feat: token counting according to model's context size #230
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 @peperunas on GitHub (Jan 25, 2024).
Is your feature request related to a problem? Please describe.
I believe a crucial feature would be to have an idea of the context size of the conversation with a model. In this way, the user is aware of how much more the chat can continue.
As of now, it seems there is no "official" way to pull a model's context size from Ollama via its API. The issue has been raised and tracked here 1.
I guess this issue can track the advancement of the API endpoint on Ollama's side as well.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
@jukofyork commented on GitHub (Feb 3, 2024):
You can sort of see this by clicking on the little "info" icon I think but agree it would be nice to have a clearer representation.
@justinh-rahb commented on GitHub (Feb 19, 2024):
I'm not sure you've got this in the right place. This seems like a suggestion to make to the Ollama project, not here.
@scscgit commented on GitHub (Aug 7, 2024):
Cross-linking with issue https://github.com/open-webui/open-webui/discussions/4246#discussioncomment-10264834 which has been sadly turned into a discussion
@evolutioned commented on GitHub (Jul 22, 2025):
i would suggest removing this as a "Good First Issue", as it requires a deep understanding of how to work with Ollama in the backend. It's a complex problem for a first timer.