Open zekker6 opened 1 year ago
hey there 👋 I've been thinking about this for awhile - however I don't have the time to implement it. The multi user part - not the API key setting.
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 https://github.com/deiucanta/chatpad/issues/21#issuecomment-1513826371, 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 https://github.com/deiucanta/chatpad/pull/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:
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.