mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #7041] [MERGED] feat: Ability to configure the use of private API keys in an environment #8802
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/7041
Author: @antpyykk-kone
Created: 11/19/2024
Status: ✅ Merged
Merged: 11/19/2024
Merged by: @tjbck
Base:
dev← Head:feature/configure-private-api-key-usage📝 Commits (2)
979e6e5feat: support for configuring private api key use7a585fbenh: option to disable api auth📊 Changes
9 files changed (+122 additions, -88 deletions)
View changed files
📝
backend/open_webui/apps/webui/main.py(+3 -0)📝
backend/open_webui/apps/webui/routers/auths.py(+14 -2)📝
backend/open_webui/config.py(+7 -0)📝
backend/open_webui/constants.py(+2 -0)📝
backend/open_webui/main.py(+2 -0)📝
backend/open_webui/utils/utils.py(+4 -3)📝
src/lib/components/admin/Settings/General.svelte(+6 -0)📝
src/lib/components/chat/Settings/Account.svelte(+83 -83)📝
src/lib/stores/index.ts(+1 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
ENABLE_API_KEY_AUTHto control private API key use in an environment.Changed
ENABLE_API_KEY_AUTHconfig is disabledENABLE_API_KEY_AUTHconfig is disabledENABLE_API_KEY_AUTHconfig is disabledWEBUI_AUTHinauths.pywas moved to be imported fromopen_webui.envwhere it originates fromAdditional Information
dev& fixes an issue with configuration option use. Updating locales has been left out.Screenshots or Videos
Sample API Requests
When
ENABLE_API_KEY_AUTH=False.Making calls to endpoints using API key
Trying to create a new API key
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.