[Question]: Can administrator logins using librechat be distinguished from regular users? #5062
Unanswered
harrisonhxy
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Yes: https://www.librechat.ai/docs/configuration/dotenv#openai |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for noticing this, do you mean setting |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is your question?
Now I have successfully deployed librechat and every time I use it I use it by logging in as an admin user, which is fine!
But now I have a problem: because I have configured the api key for each model in .env, normal users log in with my api key, but they want to use their own api key. this also prevents me from incurring huge costs for calling the model for all the users, especially since I have a lot of students in my group, and I don't want to keep paying me for them to use the api key by me all the time.
So my need now is: is there any way to allow normal users to enter their own api key when logging in, while ensuring normal use by administrators.
I'm not sure if this functionality has been implemented yet? What I see in the doc documentation so far is that it seems that once the .env file is configured, all users globally are affected.I haven't found anything related to differentiating between administrator and regular user usage.
More Details
The configuration now is that I use an administrator login, and since the api key is already configured in .env, I can just make the call, which is convenient
I want to allow regular users to enter their own api key when logging in. but at the same time keep the convenience of admins logging in directly to use it!
What is the main subject of your question?
User System/OAuth
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions