Replies: 5 comments 1 reply
-
|
🔍 Similar Issues Found I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
Show 5 more related issues💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not. |
Beta Was this translation helpful? Give feedback.
-
|
Please give your issue a title |
Beta Was this translation helpful? Give feedback.
-
|
When a Pipe function calls generate_chat_completions internally for preprocessing, it triggers the same event emission flow as a regular chat completion. The frontend receives these completion events and updates its state, causing the Stop button condition to evaluate to false. You can bypass this behaviour instead of using (There are other ways
but this is the easier and with less possible "side-effects" ) |
Beta Was this translation helpful? Give feedback.
-
|
@rgaricano Thanks for your help! I followed your advice and made progress: What I did:
What I found: In my Pipe, I was doing: if __metadata__:
body["chat_id"] = __metadata__.get("chat_id")
body["id"] = __metadata__.get("message_id")
body["session_id"] = __metadata__.get("session_id") # ← THIS breaks the Stop button
Test results:
| Metadata | Stop button | Sources/citations work |
|---------------------------|-------------|------------------------------------------|
| All 3 injected | ❌ Hidden | ✅ Yes |
| Only chat_id + message_id | ✅ Visible | ✅ Yes |
| Only session_id removed | ✅ Visible | ⚠️ Partial (links in text don't resolve) |
Question: Is there a way to keep session_id for citation linking without breaking the Stop button? Or is this a bug that should be reported separately?
Thanks again for your guidance! |
Beta Was this translation helpful? Give feedback.
-
|
Internal functions should not be used here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.36
Ollama Version (if applicable)
No response
Operating System
ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The Stop button should remain visible during the entire Pipe execution, including internal preprocessing calls to generate_chat_completions, allowing users to cancel at any time - just like it works when using models directly.
Actual Behavior
Stop button disappears immediately when a Pipe function calls
generate_chat_completionsinternally for preprocessing (like query classification). The button is replaced by the microphone icon even though the request is still processing.The Stop button works correctly when using a model directly (without the Pipe)
Steps to Reproduce
Create a Pipe function with this minimal code:
- Go to Workspace → Functions → Add Function
- Paste this code:
Beta Was this translation helpful? Give feedback.
All reactions