-
Notifications
You must be signed in to change notification settings - Fork 259
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
Option to configure API key for instance #21
Comments
hey there 👋 |
ah that's a shame. That would be fantastic. |
Similar use case here (dealing with a bunch of recruiters) and this feature would be a big help. |
Having a method of saving the API key for the instance, not in the browser, would be great. I'd like to run instances of this on my local server for family/friends as well as use a personal instance across multiple systems/browsers (entering an API key each time is a hassle). |
Your exported data contains your API key
…On Tue, Apr 18, 2023, 4:41 PM Jarel ***@***.***> wrote:
Having a method of saving the API key for the instance, not in the
browser, would be great. I'd like to run instances of this on my local
server for family/friends as well as use a personal instance across
multiple systems/browsers (entering an API key each time is a hassle).
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APESZJRKLA7MUW5G336ROQDXB4C7DANCNFSM6AAAAAAWELAKUA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It would also be nice to save chats and prompts to the instance rather than the browser. This would let me access my previous chats I wrote on my desktop from my laptop, similar to how the actual chatGPT frontend works. I guess this also involves user auth in some way to separate each person's chats. Perhaps SSO could be implemented to start? |
This is accessable from your data export. Adding accounts adds a database. Chatpad has one, however its browser side and not server side. Feel free to make a PR if you wan to implement this yourself. |
For my use-case I'd like to host chatpad in a private space for several users who will have access.
Current implementation is great for privacy and shared deployments for different users, but it's a bit hard to explain non-technical users how to insert their key and configure model for usage.
It would be great if there would be an option to configure an API key which will be used for all users.
For the docker deployment(hoping #8 is getting merged soon :) ) it would be great to have option to define an env variable which will be used for this.
Since this is a static front-end applications I can suggest 2 options to implement this atm:
This option would require to define some variable in code and set a unique value which could be replaced when container will start. While I've used similar approach in the past, and it worked, but it seems to be very hacky way for this.
Option 2 seems to be less secure than option one, but both options will have a key in plaintext when just browsing source. For my use-case it is safe to have key in plaintext without any authentication since it will only be reachable inside my network, so there is no risk of leaking key to public.
I will be happy to help with scripting/docker setup if this will be implemented and any help will be needed.
The text was updated successfully, but these errors were encountered: