mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-10 05:49:13 -05:00
[GH-ISSUE #648] feat: Prompt templates should be able to insert clipboard text. #12160
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 @horiacristescu on GitHub (Feb 5, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/648
Originally assigned to: @tjbck on GitHub.
Describe the solution you'd like
The clipboard is often inserted in a prompt as reference material. We should add a {CLIPBOARD} template variable to substitute the clipboard inside the prompt. This would work great for summarization prompts or any prompt taking web cuttings as input, and presumably be easy to implement.
@tjbck commented on GitHub (Feb 6, 2024):
Great idea! I'll take a look and see if it's feasible to implement.
@tjbck commented on GitHub (Feb 18, 2024):
You can now use
{{CLIPBOARD}}variable! Let me know if you encounter any issues!@this-josh commented on GitHub (Feb 22, 2024):
@tjbck I'm having trouble with this feature on Mac in Safari and Chrome.

I'm on version
v1.0.0-alpha.101and have created the following prompt (I've tried[{{CLIPBOARD}}]too and that has the same issue)When I try selecting the prompt nothing happens.

I've also gone into my Chrome setting and manually given the URL clipboard access.
I am running open-webui in portainer on a remote machine, I'm not sure if that could be the cause of the problem.
Looking in my console I see this error message
@this-josh commented on GitHub (Feb 22, 2024):
Additionally, when I run open-webui on my machines docker it works fine. So it seems to be an issue with remote deployment.
@tjbck commented on GitHub (Feb 22, 2024):
@this-josh clipboardAPI requires https!
@this-josh commented on GitHub (Feb 22, 2024):
Thanks for your quick reply
Okay we're on the brink of my understanding here, sorry if I say something not quite right. The webui doesn't load at all when I try accessing with https, and my localhost version works with just
httpworking
http://localhost:3000/Error as above
http://155.198...Page doesn't load at all
https://localhost:3000/https://155.198...@justinh-rahb commented on GitHub (Feb 22, 2024):
You'll need to get the WebUI put behind a reverse proxy that can handle the HTTPS termination and translation to HTTP, but that's beyond the scope of the project, there are plenty of ways and tutorials for this.
@elsatch commented on GitHub (Mar 4, 2024):
I think there are two ways to move forward and clarify the situation for the final user:
I can volunteer to document this and send a PR to docs.
@justinh-rahb commented on GitHub (Mar 4, 2024):
I would recommend against including detailed instructions for setting up HTTPS directly in the documentation. This is because there are many ways to set up production deployments with HTTPS termination, and I believe that if a user wishes to use Open WebUI at this level, they should already have the necessary knowledge to implement HTTPS termination. Providing this information may actually lead to more questions and confusion for users who are not familiar with these concepts.
@tbendien commented on GitHub (Mar 4, 2024):
@justinh-rahb @tjbck I am looking to provide small GPU OWUI computers to school classrooms and home offices for use on local wifi networks. Any suggestions on how to implement basic https in that type of local deployment?




