mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
Feat: Allow setting API key in user settings #547
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?
Originally created by @max00346 on GitHub (Mar 27, 2024).
Is your feature request related to a problem? Please describe.
There is no option to set per-user API keys. It would be nice to set individual limits and track costs for the users.
Describe the solution you'd like
An input field in the settings, available to users, to set an API key for the default OpenAI-compatible endpoint.
Describe alternatives you've considered
Using one key for all users (neither comfortable nor secure).
Additional context
I would love to see a solution to this in the future, making this project even more awesome!
@wang0yue commented on GitHub (May 27, 2024):
+1,只有管理能填apiurl和key,用户是免费用的。可以让用户自己填key,用自己的key对话。这样相当于比nextchat多一个上传文件了
@krrishdholakia commented on GitHub (May 28, 2024):
@max00346 wouldn't it be simpler to just allow passing a user_id to the proxy?
@max00346 commented on GitHub (May 28, 2024):
yes thanks, that would be even better!
@krrishdholakia commented on GitHub (May 28, 2024):
cc: @tjbck can you pass the user id to the openai endpoint?
This should help here + in abuse detection.
@tjbck commented on GitHub (Jun 22, 2024):
Implemented as manifold pipe function in dev, more examples will be added to our community platform.
function-openai_manifold-export-1719090778471.json
@justinh-rahb commented on GitHub (Jun 23, 2024):
There's an example of a moderation filter already in the Discord, we'll be sure to get that on the community site when integration is available. I'll be whipping all the present authors into getting uploaded 💪