mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
issue: Unexpected new requests #4986
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 @spaceater on GitHub (Apr 28, 2025).
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.5
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24
Browser (if applicable)
edge
Confirmation
README.md.Expected Behavior
After a chat is completed. There are no requests running in the backend.
Actual Behavior
If the chat is the first chat of a dialogue, then once the response is completed, openwebui will immediately post a new request to the backend, and the response of this unexpected request cannot be received in open-webui.
Steps to Reproduce
I use sglang as the backend and use
OFFLINE_MODE=True ENABLE_OLLAMA_API=False ENABLE_OPENAI_API=True open-webui serve --port 999to start open-webui server at port 999.Logs & Screenshots
Here is the logs of open-webui that causes the bug:
Here is the logs of sglang:
Additional Information
Does anyone know about
POST /api/v1/chats/9c740f65-e1d0-4cf4-b845-938dc888d1c5 HTTP/1.1" 200 - {}? I can't find in documents about it. I strongly supposed that the bug is caused by it, because when I use temporary chats mode, everything is fine, and there is no thisPOST /api/v1/chats/9c740f65-e1d0-4cf4-b845-938dc888d1c5 HTTP/1.1" 200 - {}in logs.@Classic298 commented on GitHub (Apr 28, 2025):
There is no bug
Open WebUI makes another request after the response was received to the "completed" endpoint to call all filter outlets and it also needs to generate the chat's title and tags as the chat gets created, which needs an API call of course.
@spaceater commented on GitHub (Apr 28, 2025):
I know that it will create titles, but it takes very long times.
And according to logs in slangs, the extra request generate over 400 tokens. But open-webui didn't receive those tokens.
@Classic298 commented on GitHub (Apr 28, 2025):
@spaceater that's the input tokens - your message, the AI's response and the prompt of the title generation/tag generation. This is normal amount
@spaceater commented on GitHub (Apr 30, 2025):
Okay, I get it.
The issue is solved:)