[GH-ISSUE #9630] feat: Attached Messages Count #15588

Closed
opened 2026-04-19 21:45:22 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @devanenWl on GitHub (Feb 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9630

Feature Request

Allow how many number of sent messages attached per request

Is your feature request related to a problem? Please describe.
Sometime, when I ask about something related to each other but don't need LLM to read all the history, I don't want to create a new chat to reduce the input token. Also I don't want to copy/paste a system prompt for every chat.

Describe the solution you'd like
I think we should have a function to allow user to choose how many message they want to send to OpenAI. It should be processed on frontend before sending to server. Let's say I use 2, it will select the last 2 messages then send to API

Originally created by @devanenWl on GitHub (Feb 8, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/9630 # Feature Request Allow how many number of sent messages attached per request **Is your feature request related to a problem? Please describe.** Sometime, when I ask about something related to each other but don't need LLM to read all the history, I don't want to create a new chat to reduce the input token. Also I don't want to copy/paste a system prompt for every chat. **Describe the solution you'd like** I think we should have a function to allow user to choose how many message they want to send to OpenAI. It should be processed on frontend before sending to server. Let's say I use 2, it will select the last 2 messages then send to API
Author
Owner

@atgehrhardt commented on GitHub (Feb 8, 2025):

Looks like we have a function on the community site that does this: https://openwebui.com/f/keke/context_manager/

<!-- gh-comment-id:2644419332 --> @atgehrhardt commented on GitHub (Feb 8, 2025): Looks like we have a function on the community site that does this: https://openwebui.com/f/keke/context_manager/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#15588