Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Allow setting API key in user settings #1320

Closed
max00346 opened this issue Mar 27, 2024 · 6 comments
Closed

Feat: Allow setting API key in user settings #1320

max00346 opened this issue Mar 27, 2024 · 6 comments

Comments

@max00346
Copy link

max00346 commented 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!

@Raymond0Hui
Copy link

1,只有管理能填apiurl和key,用户是免费用的。可以让用户自己填key,用自己的key对话。这样相当于比nextchat多一个上传文件了

@krrishdholakia
Copy link

@max00346 wouldn't it be simpler to just allow passing a user_id to the proxy?

@max00346
Copy link
Author

@max00346 wouldn't it be simpler to just allow passing a user_id to the proxy?

yes thanks, that would be even better!

@krrishdholakia
Copy link

cc: @tjbck can you pass the user id to the openai endpoint?

This should help here in abuse detection.

@tjbck
Copy link
Contributor

tjbck commented Jun 22, 2024

Implemented as manifold pipe function in dev, more examples will be added to our community platform.

image
image
image

function-openai_manifold-export-1719090778471.json

@tjbck tjbck closed this as completed Jun 22, 2024
@justinh-rahb
Copy link
Collaborator

cc: @tjbck can you pass the user id to the openai endpoint?

This should help here in abuse detection.

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 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants