forked from open-webui/open-webui
commit
88eab8e8df
10 changed files with 51 additions and 46 deletions
49
README.md
49
README.md
|
@ -1,4 +1,4 @@
|
||||||
# Ollama Web UI: A User-Friendly Web Interface for Chat Interactions 👋
|
# Open WebUI (Formerly Ollama WebUI) 👋
|
||||||
|
|
||||||
![GitHub stars](https://img.shields.io/github/stars/ollama-webui/ollama-webui?style=social)
|
![GitHub stars](https://img.shields.io/github/stars/ollama-webui/ollama-webui?style=social)
|
||||||
![GitHub forks](https://img.shields.io/github/forks/ollama-webui/ollama-webui?style=social)
|
![GitHub forks](https://img.shields.io/github/forks/ollama-webui/ollama-webui?style=social)
|
||||||
|
@ -13,11 +13,9 @@
|
||||||
|
|
||||||
ChatGPT-Style Web Interface for Ollama 🦙
|
ChatGPT-Style Web Interface for Ollama 🦙
|
||||||
|
|
||||||
**Disclaimer:** _ollama-webui is a community-driven project and is not affiliated with the Ollama team in any way. This initiative is independent, and any inquiries or feedback should be directed to [our community on Discord](https://discord.gg/5rJgQTnV4s). We kindly request users to refrain from contacting or harassing the Ollama team regarding this project._
|
![Open WebUI Demo](./demo.gif)
|
||||||
|
|
||||||
![Ollama Web UI Demo](./demo.gif)
|
Also check our sibling project, [Open WebUI Community](https://openwebui.com/), where you can discover, download, and explore customized Modelfiles for Ollama! 🦙🔍
|
||||||
|
|
||||||
Also check our sibling project, [OllamaHub](https://ollamahub.com/), where you can discover, download, and explore customized Modelfiles for Ollama! 🦙🔍
|
|
||||||
|
|
||||||
## Features ⭐
|
## Features ⭐
|
||||||
|
|
||||||
|
@ -37,7 +35,7 @@ Also check our sibling project, [OllamaHub](https://ollamahub.com/), where you c
|
||||||
|
|
||||||
- 🌐 **Web Browsing Capability**: Seamlessly integrate websites into your chat experience using the `#` command followed by the URL. This feature allows you to incorporate web content directly into your conversations, enhancing the richness and depth of your interactions.
|
- 🌐 **Web Browsing Capability**: Seamlessly integrate websites into your chat experience using the `#` command followed by the URL. This feature allows you to incorporate web content directly into your conversations, enhancing the richness and depth of your interactions.
|
||||||
|
|
||||||
- 📜 **Prompt Preset Support**: Instantly access preset prompts using the `/` command in the chat input. Load predefined conversation starters effortlessly and expedite your interactions. Effortlessly import prompts through [OllamaHub](https://ollamahub.com/) integration.
|
- 📜 **Prompt Preset Support**: Instantly access preset prompts using the `/` command in the chat input. Load predefined conversation starters effortlessly and expedite your interactions. Effortlessly import prompts through [Open WebUI Community](https://openwebui.com/) integration.
|
||||||
|
|
||||||
- 👍👎 **RLHF Annotation**: Empower your messages by rating them with thumbs up and thumbs down, facilitating the creation of datasets for Reinforcement Learning from Human Feedback (RLHF). Utilize your messages to train or fine-tune models, all while ensuring the confidentiality of locally saved data.
|
- 👍👎 **RLHF Annotation**: Empower your messages by rating them with thumbs up and thumbs down, facilitating the creation of datasets for Reinforcement Learning from Human Feedback (RLHF). Utilize your messages to train or fine-tune models, all while ensuring the confidentiality of locally saved data.
|
||||||
|
|
||||||
|
@ -51,7 +49,7 @@ Also check our sibling project, [OllamaHub](https://ollamahub.com/), where you c
|
||||||
|
|
||||||
- 🔄 **Multi-Modal Support**: Seamlessly engage with models that support multimodal interactions, including images (e.g., LLava).
|
- 🔄 **Multi-Modal Support**: Seamlessly engage with models that support multimodal interactions, including images (e.g., LLava).
|
||||||
|
|
||||||
- 🧩 **Modelfile Builder**: Easily create Ollama modelfiles via the web UI. Create and add characters/agents, customize chat elements, and import modelfiles effortlessly through [OllamaHub](https://ollamahub.com/) integration.
|
- 🧩 **Modelfile Builder**: Easily create Ollama modelfiles via the web UI. Create and add characters/agents, customize chat elements, and import modelfiles effortlessly through [Open WebUI Community](https://openwebui.com/) integration.
|
||||||
|
|
||||||
- ⚙️ **Many Models Conversations**: Effortlessly engage with various models simultaneously, harnessing their unique strengths for optimal responses. Enhance your experience by leveraging a diverse set of models in parallel.
|
- ⚙️ **Many Models Conversations**: Effortlessly engage with various models simultaneously, harnessing their unique strengths for optimal responses. Enhance your experience by leveraging a diverse set of models in parallel.
|
||||||
|
|
||||||
|
@ -73,25 +71,25 @@ Also check our sibling project, [OllamaHub](https://ollamahub.com/), where you c
|
||||||
|
|
||||||
- 🔐 **Role-Based Access Control (RBAC)**: Ensure secure access with restricted permissions; only authorized individuals can access your Ollama, and exclusive model creation/pulling rights are reserved for administrators.
|
- 🔐 **Role-Based Access Control (RBAC)**: Ensure secure access with restricted permissions; only authorized individuals can access your Ollama, and exclusive model creation/pulling rights are reserved for administrators.
|
||||||
|
|
||||||
- 🔒 **Backend Reverse Proxy Support**: Bolster security through direct communication between Ollama Web UI backend and Ollama. This key feature eliminates the need to expose Ollama over LAN. Requests made to the '/ollama/api' route from the web UI are seamlessly redirected to Ollama from the backend, enhancing overall system security.
|
- 🔒 **Backend Reverse Proxy Support**: Bolster security through direct communication between Open WebUI backend and Ollama. This key feature eliminates the need to expose Ollama over LAN. Requests made to the '/ollama/api' route from the web UI are seamlessly redirected to Ollama from the backend, enhancing overall system security.
|
||||||
|
|
||||||
- 🌟 **Continuous Updates**: We are committed to improving Ollama Web UI with regular updates and new features.
|
- 🌟 **Continuous Updates**: We are committed to improving Open WebUI with regular updates and new features.
|
||||||
|
|
||||||
## 🔗 Also Check Out OllamaHub!
|
## 🔗 Also Check Out Open WebUI Community!
|
||||||
|
|
||||||
Don't forget to explore our sibling project, [OllamaHub](https://ollamahub.com/), where you can discover, download, and explore customized Modelfiles. OllamaHub offers a wide range of exciting possibilities for enhancing your chat interactions with Ollama! 🚀
|
Don't forget to explore our sibling project, [Open WebUI Community](https://openwebui.com/), where you can discover, download, and explore customized Modelfiles. Open WebUI Community offers a wide range of exciting possibilities for enhancing your chat interactions with Ollama! 🚀
|
||||||
|
|
||||||
## How to Install 🚀
|
## How to Install 🚀
|
||||||
|
|
||||||
🌟 **Important Note on User Roles and Privacy:**
|
🌟 **Important Note on User Roles and Privacy:**
|
||||||
|
|
||||||
- **Admin Creation:** The very first account to sign up on the Ollama Web UI will be granted **Administrator privileges**. This account will have comprehensive control over the platform, including user management and system settings.
|
- **Admin Creation:** The very first account to sign up on the Open WebUI will be granted **Administrator privileges**. This account will have comprehensive control over the platform, including user management and system settings.
|
||||||
|
|
||||||
- **User Registrations:** All subsequent users signing up will initially have their accounts set to **Pending** status by default. These accounts will require approval from the Administrator to gain access to the platform functionalities.
|
- **User Registrations:** All subsequent users signing up will initially have their accounts set to **Pending** status by default. These accounts will require approval from the Administrator to gain access to the platform functionalities.
|
||||||
|
|
||||||
- **Privacy and Data Security:** We prioritize your privacy and data security above all. Please be reassured that all data entered into the Ollama Web UI is stored locally on your device. Our system is designed to be privacy-first, ensuring that no external requests are made, and your data does not leave your local environment. We are committed to maintaining the highest standards of data privacy and security, ensuring that your information remains confidential and under your control.
|
- **Privacy and Data Security:** We prioritize your privacy and data security above all. Please be reassured that all data entered into the Open WebUI is stored locally on your device. Our system is designed to be privacy-first, ensuring that no external requests are made, and your data does not leave your local environment. We are committed to maintaining the highest standards of data privacy and security, ensuring that your information remains confidential and under your control.
|
||||||
|
|
||||||
### Steps to Install Ollama Web UI
|
### Steps to Install Open WebUI
|
||||||
|
|
||||||
#### Before You Begin
|
#### Before You Begin
|
||||||
|
|
||||||
|
@ -128,7 +126,7 @@ Don't forget to explore our sibling project, [OllamaHub](https://ollamahub.com/)
|
||||||
|
|
||||||
#### Installing with Docker 🐳
|
#### Installing with Docker 🐳
|
||||||
|
|
||||||
- **Important:** When using Docker to install Ollama Web UI, make sure to include the `-v ollama-webui:/app/backend/data` in your Docker command. This step is crucial as it ensures your database is properly mounted and prevents any loss of data.
|
- **Important:** When using Docker to install Open WebUI, make sure to include the `-v ollama-webui:/app/backend/data` in your Docker command. This step is crucial as it ensures your database is properly mounted and prevents any loss of data.
|
||||||
|
|
||||||
- **If Ollama is on your computer**, use this command:
|
- **If Ollama is on your computer**, use this command:
|
||||||
|
|
||||||
|
@ -143,7 +141,7 @@ Don't forget to explore our sibling project, [OllamaHub](https://ollamahub.com/)
|
||||||
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app/backend/data --name ollama-webui --restart always ollama-webui
|
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app/backend/data --name ollama-webui --restart always ollama-webui
|
||||||
```
|
```
|
||||||
|
|
||||||
- After installation, you can access Ollama Web UI at [http://localhost:3000](http://localhost:3000).
|
- After installation, you can access Open WebUI at [http://localhost:3000](http://localhost:3000).
|
||||||
|
|
||||||
#### Using Ollama on a Different Server
|
#### Using Ollama on a Different Server
|
||||||
|
|
||||||
|
@ -160,7 +158,7 @@ Don't forget to explore our sibling project, [OllamaHub](https://ollamahub.com/)
|
||||||
docker run -d -p 3000:8080 -e OLLAMA_API_BASE_URL=https://example.com/api -v ollama-webui:/app/backend/data --name ollama-webui --restart always ollama-webui
|
docker run -d -p 3000:8080 -e OLLAMA_API_BASE_URL=https://example.com/api -v ollama-webui:/app/backend/data --name ollama-webui --restart always ollama-webui
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installing Ollama and Ollama Web UI Together
|
### Installing Ollama and Open WebUI Together
|
||||||
|
|
||||||
#### Using Docker Compose
|
#### Using Docker Compose
|
||||||
|
|
||||||
|
@ -210,7 +208,7 @@ Don't forget to explore our sibling project, [OllamaHub](https://ollamahub.com/)
|
||||||
|
|
||||||
### Alternative Installation Methods
|
### Alternative Installation Methods
|
||||||
|
|
||||||
For other ways to install, like using Kustomize or Helm, check out [INSTALLATION.md](/INSTALLATION.md). Join our [Ollama Web UI Discord community](https://discord.gg/5rJgQTnV4s) for more help and information.
|
For other ways to install, like using Kustomize or Helm, check out [INSTALLATION.md](/INSTALLATION.md). Join our [Open WebUI Discord community](https://discord.gg/5rJgQTnV4s) for more help and information.
|
||||||
|
|
||||||
### Updating your Docker Installation
|
### Updating your Docker Installation
|
||||||
|
|
||||||
|
@ -230,7 +228,7 @@ While we strongly recommend using our convenient Docker container installation f
|
||||||
|
|
||||||
### Project Components
|
### Project Components
|
||||||
|
|
||||||
The Ollama Web UI consists of two primary components: the frontend and the backend (which serves as a reverse proxy, handling static frontend files, and additional features). Both need to be running concurrently for the development environment.
|
The Open WebUI consists of two primary components: the frontend and the backend (which serves as a reverse proxy, handling static frontend files, and additional features). Both need to be running concurrently for the development environment.
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> The backend is required for proper functionality
|
> The backend is required for proper functionality
|
||||||
|
@ -265,11 +263,11 @@ pip install -r requirements.txt -U
|
||||||
sh start.sh
|
sh start.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
You should have the Ollama Web UI up and running at http://localhost:8080/. Enjoy! 😄
|
You should have the Open WebUI up and running at http://localhost:8080/. Enjoy! 😄
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
See [TROUBLESHOOTING.md](/TROUBLESHOOTING.md) for information on how to troubleshoot and/or join our [Ollama Web UI Discord community](https://discord.gg/5rJgQTnV4s).
|
See [TROUBLESHOOTING.md](/TROUBLESHOOTING.md) for information on how to troubleshoot and/or join our [Open WebUI Discord community](https://discord.gg/5rJgQTnV4s).
|
||||||
|
|
||||||
## What's Next? 🚀
|
## What's Next? 🚀
|
||||||
|
|
||||||
|
@ -280,14 +278,14 @@ Here are some exciting tasks on our roadmap:
|
||||||
- 🔊 **Local Text-to-Speech Integration**: Seamlessly incorporate text-to-speech functionality directly within the platform, allowing for a smoother and more immersive user experience.
|
- 🔊 **Local Text-to-Speech Integration**: Seamlessly incorporate text-to-speech functionality directly within the platform, allowing for a smoother and more immersive user experience.
|
||||||
- 🛡️ **Granular Permissions and User Groups**: Empower administrators to finely control access levels and group users according to their roles and responsibilities. This feature ensures robust security measures and streamlined management of user privileges, enhancing overall platform functionality.
|
- 🛡️ **Granular Permissions and User Groups**: Empower administrators to finely control access levels and group users according to their roles and responsibilities. This feature ensures robust security measures and streamlined management of user privileges, enhancing overall platform functionality.
|
||||||
- 🔄 **Function Calling**: Empower your interactions by running code directly within the chat. Execute functions and commands effortlessly, enhancing the functionality of your conversations.
|
- 🔄 **Function Calling**: Empower your interactions by running code directly within the chat. Execute functions and commands effortlessly, enhancing the functionality of your conversations.
|
||||||
- ⚙️ **Custom Python Backend Actions**: Empower your Ollama Web UI by creating or downloading custom Python backend actions. Unleash the full potential of your web interface with tailored actions that suit your specific needs, enhancing functionality and versatility.
|
- ⚙️ **Custom Python Backend Actions**: Empower your Open WebUI by creating or downloading custom Python backend actions. Unleash the full potential of your web interface with tailored actions that suit your specific needs, enhancing functionality and versatility.
|
||||||
- 🔧 **Fine-tune Model (LoRA)**: Fine-tune your model directly from the user interface. This feature allows for precise customization and optimization of the chat experience to better suit your needs and preferences.
|
- 🔧 **Fine-tune Model (LoRA)**: Fine-tune your model directly from the user interface. This feature allows for precise customization and optimization of the chat experience to better suit your needs and preferences.
|
||||||
- 🧠 **Long-Term Memory**: Witness the power of persistent memory in our agents. Enjoy conversations that feel continuous as agents remember and reference past interactions, creating a more cohesive and personalized user experience.
|
- 🧠 **Long-Term Memory**: Witness the power of persistent memory in our agents. Enjoy conversations that feel continuous as agents remember and reference past interactions, creating a more cohesive and personalized user experience.
|
||||||
- 🧪 **Research-Centric Features**: Empower researchers in the fields of LLM and HCI with a comprehensive web UI for conducting user studies. Stay tuned for ongoing feature enhancements (e.g., surveys, analytics, and participant tracking) to facilitate their research.
|
- 🧪 **Research-Centric Features**: Empower researchers in the fields of LLM and HCI with a comprehensive web UI for conducting user studies. Stay tuned for ongoing feature enhancements (e.g., surveys, analytics, and participant tracking) to facilitate their research.
|
||||||
- 📈 **User Study Tools**: Providing specialized tools, like heat maps and behavior tracking modules, to empower researchers in capturing and analyzing user behavior patterns with precision and accuracy.
|
- 📈 **User Study Tools**: Providing specialized tools, like heat maps and behavior tracking modules, to empower researchers in capturing and analyzing user behavior patterns with precision and accuracy.
|
||||||
- 📚 **Enhanced Documentation**: Elevate your setup and customization experience with improved, comprehensive documentation.
|
- 📚 **Enhanced Documentation**: Elevate your setup and customization experience with improved, comprehensive documentation.
|
||||||
|
|
||||||
Feel free to contribute and help us make Ollama Web UI even better! 🙌
|
Feel free to contribute and help us make Open WebUI even better! 🙌
|
||||||
|
|
||||||
## Supporters ✨
|
## Supporters ✨
|
||||||
|
|
||||||
|
@ -308,9 +306,8 @@ This project is licensed under the [MIT License](LICENSE) - see the [LICENSE](LI
|
||||||
## Support 💬
|
## Support 💬
|
||||||
|
|
||||||
If you have any questions, suggestions, or need assistance, please open an issue or join our
|
If you have any questions, suggestions, or need assistance, please open an issue or join our
|
||||||
[Ollama Web UI Discord community](https://discord.gg/5rJgQTnV4s) or
|
[Open WebUI Discord community](https://discord.gg/5rJgQTnV4s) to connect with us! 🤝
|
||||||
[Ollama Discord community](https://discord.gg/ollama) to connect with us! 🤝
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Created by [Timothy J. Baek](https://github.com/tjbck) - Let's make Ollama Web UI even more amazing together! 💪
|
Created by [Timothy J. Baek](https://github.com/tjbck) - Let's make Open Web UI even more amazing together! 💪
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
</div>
|
</div>
|
||||||
{#if modelfile.user}
|
{#if modelfile.user}
|
||||||
<div class="mt-0.5 text-sm font-normal text-gray-500 dark:text-gray-500">
|
<div class="mt-0.5 text-sm font-normal text-gray-500 dark:text-gray-500">
|
||||||
By <a href="https://ollamahub.com/m/{modelfile.user.username}"
|
By <a href="https://openwebui.com/m/{modelfile.user.username}"
|
||||||
>{modelfile.user.name ? modelfile.user.name : `@${modelfile.user.username}`}</a
|
>{modelfile.user.name ? modelfile.user.name : `@${modelfile.user.username}`}</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
show = false;
|
show = false;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Share to OllamaHub
|
Share to OpenWebUI Community
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="flex justify-center space-x-1 mt-1.5">
|
<div class="flex justify-center space-x-1 mt-1.5">
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
const chat = (await getChatById(localStorage.token, $chatId)).chat;
|
const chat = (await getChatById(localStorage.token, $chatId)).chat;
|
||||||
console.log('share', chat);
|
console.log('share', chat);
|
||||||
|
|
||||||
toast.success('Redirecting you to OllamaHub');
|
toast.success('Redirecting you to OpenWebUI Community');
|
||||||
const url = 'https://ollamahub.com';
|
const url = 'https://openwebui.com';
|
||||||
// const url = 'http://localhost:5173';
|
// const url = 'http://localhost:5173';
|
||||||
|
|
||||||
const tab = await window.open(`${url}/chats/upload`, '_blank');
|
const tab = await window.open(`${url}/chats/upload`, '_blank');
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { dev } from '$app/environment';
|
import { dev } from '$app/environment';
|
||||||
|
|
||||||
export const WEBUI_NAME = 'Ollama Web UI';
|
export const WEBUI_NAME = 'Open Web UI';
|
||||||
export const WEBUI_BASE_URL = dev ? `http://${location.hostname}:8080` : ``;
|
export const WEBUI_BASE_URL = dev ? `http://${location.hostname}:8080` : ``;
|
||||||
|
|
||||||
export const WEBUI_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1`;
|
export const WEBUI_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1`;
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const shareModelfile = async (modelfile) => {
|
const shareModelfile = async (modelfile) => {
|
||||||
toast.success('Redirecting you to OllamaHub');
|
toast.success('Redirecting you to OpenWebUI Community');
|
||||||
|
|
||||||
const url = 'https://ollamahub.com';
|
const url = 'https://openwebui.com';
|
||||||
|
|
||||||
const tab = await window.open(`${url}/modelfiles/create`, '_blank');
|
const tab = await window.open(`${url}/modelfiles/create`, '_blank');
|
||||||
window.addEventListener(
|
window.addEventListener(
|
||||||
|
@ -348,11 +348,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" my-16">
|
<div class=" my-16">
|
||||||
<div class=" text-2xl font-semibold mb-6">Made by OllamaHub Community</div>
|
<div class=" text-2xl font-semibold mb-6">Made by OpenWebUI Community</div>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
class=" flex space-x-4 cursor-pointer w-full mb-3"
|
class=" flex space-x-4 cursor-pointer w-full mb-3"
|
||||||
href="https://ollamahub.com/"
|
href="https://openwebui.com/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<div class=" self-center w-10">
|
<div class=" self-center w-10">
|
||||||
|
|
|
@ -212,9 +212,13 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
window.addEventListener('message', async (event) => {
|
window.addEventListener('message', async (event) => {
|
||||||
if (
|
if (
|
||||||
!['https://ollamahub.com', 'https://www.ollamahub.com', 'http://localhost:5173'].includes(
|
![
|
||||||
event.origin
|
'https://ollamahub.com',
|
||||||
)
|
'https://www.ollamahub.com',
|
||||||
|
'https://openwebui.com',
|
||||||
|
'https://www.openwebui.com',
|
||||||
|
'http://localhost:5173'
|
||||||
|
].includes(event.origin)
|
||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
const modelfile = JSON.parse(event.data);
|
const modelfile = JSON.parse(event.data);
|
||||||
|
@ -474,7 +478,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
|
||||||
or
|
or
|
||||||
<a
|
<a
|
||||||
class=" text-gray-500 dark:text-gray-300 font-medium"
|
class=" text-gray-500 dark:text-gray-300 font-medium"
|
||||||
href="https://ollamahub.com"
|
href="https://openwebui.com"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
Click here to check other modelfiles.
|
Click here to check other modelfiles.
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
let query = '';
|
let query = '';
|
||||||
|
|
||||||
const sharePrompt = async (prompt) => {
|
const sharePrompt = async (prompt) => {
|
||||||
toast.success('Redirecting you to OllamaHub');
|
toast.success('Redirecting you to OpenWebUI Community');
|
||||||
|
|
||||||
const url = 'https://ollamahub.com';
|
const url = 'https://openwebui.com';
|
||||||
|
|
||||||
const tab = await window.open(`${url}/prompts/create`, '_blank');
|
const tab = await window.open(`${url}/prompts/create`, '_blank');
|
||||||
window.addEventListener(
|
window.addEventListener(
|
||||||
|
@ -272,11 +272,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" my-16">
|
<div class=" my-16">
|
||||||
<div class=" text-2xl font-semibold mb-6">Made by OllamaHub Community</div>
|
<div class=" text-2xl font-semibold mb-6">Made by OpenWebUI Community</div>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
class=" flex space-x-4 cursor-pointer w-full mb-3"
|
class=" flex space-x-4 cursor-pointer w-full mb-3"
|
||||||
href="https://ollamahub.com/?type=prompts"
|
href="https://openwebui.com/?type=prompts"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<div class=" self-center w-10">
|
<div class=" self-center w-10">
|
||||||
|
|
|
@ -53,9 +53,13 @@
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
window.addEventListener('message', async (event) => {
|
window.addEventListener('message', async (event) => {
|
||||||
if (
|
if (
|
||||||
!['https://ollamahub.com', 'https://www.ollamahub.com', 'http://localhost:5173'].includes(
|
![
|
||||||
event.origin
|
'https://ollamahub.com',
|
||||||
)
|
'https://www.ollamahub.com',
|
||||||
|
'https://openwebui.com',
|
||||||
|
'https://www.openwebui.com',
|
||||||
|
'http://localhost:5173'
|
||||||
|
].includes(event.origin)
|
||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
const prompt = JSON.parse(event.data);
|
const prompt = JSON.parse(event.data);
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 6 KiB |
Loading…
Reference in a new issue