deiucanta / chatpad

Not just another ChatGPT user-interface!
https://chatpad.ai
GNU Affero General Public License v3.0
1.36k stars 253 forks source link

Feature Request - Write to DB instead of browser storage #46

Open colindaly opened 1 year ago

colindaly commented 1 year ago

CUrrently only saves prompts and previous chats into the browser storage. It would be great to save the chats and prompts into a DB within Docker so they are remembered when accessing the Docker app across different devices.

Supernova3339 commented 1 year ago

Your data can be easily imported into your docker installation. Just use the import and export features. However, due to the play of InfluxDB and the promise that all data is stored locally, this request is outside of the mission Chatpad aims to provide and is henceforth rejected.

On Tue, Apr 25, 2023, 9:58 PM Colin Daly @.***> wrote:

CUrrently only saves prompts and previous chats into the browser storage. It would be great to save the chats and prompts into a DB within Docker so they are remembered when accessing the Docker app across different devices.

— Reply to this email directly, view it on GitHub https://github.com/deiucanta/chatpad/issues/46, or unsubscribe https://github.com/notifications/unsubscribe-auth/APESZJQ5EVEIHTN4OGAT423XDCFLRANCNFSM6AAAAAAXLZ43A4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ngregrichardson commented 1 year ago

I understand that at https://chatpad.ai/, you want to keep a promise of data being stored locally. However, when I'm self-hosting it I would love to have the option to persist stuff like the API key, chats, and prompts across sessions.

I would love to work on this, if you'd let me. The way I imagine it I'd provide an option in the config to store data in a persistent database within the docker container instead of in the browser.

Supernova3339 commented 1 year ago

Feel free to send a PR

On Sun, May 28, 2023, 10:11 AM Noah Richardson @.***> wrote:

I understand that at https://chatpad.ai/, you want to keep a promise of data being stored locally. However, when I'm self-hosting it I would love to have the option to persist stuff like the API key, chats, and prompts across sessions.

I would love to work on this, if you'd let me. The way I imagine it I'd provide an option in the config to store data in a persistent database within the docker container instead of in the browser.

— Reply to this email directly, view it on GitHub https://github.com/deiucanta/chatpad/issues/46#issuecomment-1566170165, or unsubscribe https://github.com/notifications/unsubscribe-auth/APESZJTV3NRYIKDW5HLWQL3XINTLFANCNFSM6AAAAAAXLZ43A4 . You are receiving this because you commented.Message ID: @.***>

PhyberApex commented 1 year ago

Hey @ngregrichardson how is progress on this one? I imagine we would also need authZ(possible multi user?) for this to make sure we don't open up the entered API key for everyone to use.

enigmanet commented 1 year ago

The ask is more that when you land on the page, you enter the api key. You clear cache cookies and all you have to do that all over again. You have 2-3 VMs, multiply that by how many. Would be nice to have a feature to store api key on the server, or chat history and not have to export -> import into the other browser, or sync among 3-5 other browsers.

p.s. This is being used on a Unraid / Docker Community App