mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-18 19:29:11 -05:00
[PR #2139] [CLOSED] [WIP] Support for Automatic1111 API Auth #7701
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/2139
Author: @spammenotinoz
Created: 5/9/2024
Status: ❌ Closed
Base:
dev← Head:Feature-Automatic1111-Authentication📝 Commits (1)
0eb2f5cSupport for Automatic1111 API Auth📊 Changes
1 file changed (+19 additions, -12 deletions)
View changed files
📝
backend/apps/images/main.py(+19 -12)📄 Description
Enable Auth in Automatic111 with the --api --api-auth username:password
Set the following environment variables in docker;
- "ENABLE_IMAGE_GENERATION=True"
- "AUTOMATIC1111_BASE_URL=http://invokeaiurl:7860"
- "AUTOMATIC1111_API_AUTH=username:password"
- "IMAGE_GENERATION_MODEL=model_name"
- "IMAGE_SIZE=widthxheight"
Note: Works, but if you enter Image within Admin settings it breaks, as breaks as Auth hasn't been added to the Admin Interface. Appreciate if someone can help with that.
Pull Request Checklist
Target branch: Pull requests should target the
devbranch.DEV
Description: Briefly describe the changes in this pull request.
Session authentication added to backend\apps\images\main.py
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
No
Testing: Have you written and run sufficient tests for the changes?
Code Review: Have you self-reviewed your code and addressed any coding standard issues?
Yes, refer to current bugs
Description
Support for Automatic1111 Authentication, which is critical if you host the Automatic1111 on a different server, which likely most will want to due to GPU limitations.
Changelog Entry
Added
Breaking Changes
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.