This PR will add the possibility to use and API Key or bearer token for generating images through ComfyUI
Added
API Key to ComfyUI requests
Additional Information
This is only needed for those of us who use the login plugin or have ComfyUI behind a secure reverse proxy. It continues working normally for other people.
This is the fix to the PR #7894 as that was erronously sourced from the main branch and trying to merge into dev which caused file conflicts.
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/7915
**Author:** [@short-circuit](https://github.com/short-circuit)
**Created:** 12/17/2024
**Status:** ✅ Merged
**Merged:** 12/17/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `dev`
---
### 📝 Commits (1)
- [`987b0f0`](https://github.com/open-webui/open-webui/commit/987b0f0dfd39671c28f1b9b0edbcafff7daf31c7) feat: add comfyui api key
### 📊 Changes
**5 files changed** (+41 additions, -15 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/config.py` (+6 -0)
📝 `backend/open_webui/main.py` (+2 -0)
📝 `backend/open_webui/routers/images.py` (+6 -3)
📝 `backend/open_webui/utils/images/comfyui.py` (+13 -12)
📝 `src/lib/components/admin/Settings/Images.svelte` (+14 -0)
</details>
### 📄 Description
### Description
- This PR will add the possibility to use and API Key or bearer token for generating images through ComfyUI
### Added
- API Key to ComfyUI requests
---
### Additional Information
- This is only needed for those of us who use the [login plugin](https://github.com/liusida/ComfyUI-Login) or have ComfyUI behind a secure reverse proxy. It continues working normally for other people.
- This closes #3232
- This is the fix to the PR #7894 as that was erronously sourced from the `main` branch and trying to merge into `dev` which caused file conflicts.
### Screenshots or Videos

---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/7915
Author: @short-circuit
Created: 12/17/2024
Status: ✅ Merged
Merged: 12/17/2024
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
987b0f0feat: add comfyui api key📊 Changes
5 files changed (+41 additions, -15 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -0)📝
backend/open_webui/main.py(+2 -0)📝
backend/open_webui/routers/images.py(+6 -3)📝
backend/open_webui/utils/images/comfyui.py(+13 -12)📝
src/lib/components/admin/Settings/Images.svelte(+14 -0)📄 Description
Description
Added
Additional Information
mainbranch and trying to merge intodevwhich caused file conflicts.Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.