mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #2956] bug: playground undeclared variable #13080
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 @coder543 on GitHub (Jun 9, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2956
Bug Report
Description
Bug Summary:
Steps to Reproduce:
Use the Playground in completion mode with a text model (as you should, not an instruct/chat model). Do anything. You will get one opportunity to generate a completion, then the UI will break. The "cancel" button will not work, and it will not ever revert to a "submit" button.
I am using the latest docker image, and I checked before submitting this. It is very clearly just an untested piece of code. Probably just need to remove this line of code.
@tjbck commented on GitHub (Jun 9, 2024):
Good catch, PR welcome!
@coder543 commented on GitHub (Jun 9, 2024):
I don't have dev environment set up for this repo, sadly, and anything javascript related could take an hour or two to get fully set up... which is more than I want to spend on this bug at the moment. Instead, I'll just use ollama's completion API directly for this experiment. If there were a
devcontainerin the repo, I might be able to easily test and submit a PR, but I'm not planning to blindly submit a PR without being able to test it.@Qualzz commented on GitHub (Jun 9, 2024):
I was about to post this issue 2 minutes ago when I realised I was about to post in the ollama repo...

The "currentRequestId is not defined" is triggered when you clic on "cancel".
stopResponseAfter that the button stay in cancel stay, and doesn't revert back to "Submit". Cuda activity does stops when cancelling, suggesting this is mostly a UX bug.
@tjbck commented on GitHub (Jun 10, 2024):
Fixed on dev!
@coder543 commented on GitHub (Jun 10, 2024):
@tjbck nice! thanks!