mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-26 11:27:54 -05:00
[PR #1306] [MERGED] Feature/support auth by api key #36261
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/1306
Author: @vaayne
Created: 3/26/2024
Status: ✅ Merged
Merged: 4/2/2024
Merged by: @tjbck
Base:
dev← Head:feature/support_auth_by_api_key📝 Commits (10+)
81e9280backend support api keyb4b56f9frontend support api keya0935deMerge branch 'dev' into feature/support_auth_by_api_key56369feMerge branch 'dev' into feature/support_auth_by_api_keyb11af9efix38c34b4fix: importba0523crefac: api_key field moved to userda8646creface49e04cchore: formatting7c5f6d7refac📊 Changes
9 files changed (+469 additions, -71 deletions)
View changed files
➕
backend/apps/web/internal/migrations/003_add_auth_api_key.py(+48 -0)📝
backend/apps/web/models/auths.py(+16 -0)📝
backend/apps/web/models/users.py(+25 -0)📝
backend/apps/web/routers/auths.py(+43 -7)📝
backend/constants.py(+2 -1)📝
backend/utils/utils.py(+22 -0)📝
src/lib/apis/auths/index.ts(+75 -0)📝
src/lib/components/chat/Settings/Account.svelte(+223 -63)➕
src/lib/components/icons/Plus.svelte(+15 -0)📄 Description
Pull Request Checklist
Description
Support creation of API keys for authentication purposes, allowing users to utilize them with our API of LiteLLM OpenAI Proxy Service
Example Usage
Changelog Entry
Added
Fixed
Changed
Removed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.