henrycunh / golem

✨ A beautiful UI for ChatGPT and other conversational models
https://golem.chat
MIT License
235 stars 63 forks source link

local storage of chat history #35

Closed xijia-tao closed 1 year ago

xijia-tao commented 1 year ago

Hello, thanks for the great repo!

When I use npm run dev to run the app locally, I believe each conversation is stored to some place because I can see my conversation history with chatgpt.

I am quite new to vue.js. I could not find the relevant code or files on my own. I'd really appreciate someone to tell me where the list of conversations is stored. Thanks a lot!

henrycunh commented 1 year ago

Hey!

The conversation data is stored in a IndexedDB store. The file with the definition for the stores and some of its setup code is in ~/composables/idb.ts.

IDB and Dexie makes interacting with locally stored data really easy and maintainable!

xijia-tao commented 1 year ago

Thanks a lot!!