lmstudio-ai / lmstudio-bug-tracker

Bug tracking for the LM Studio desktop application
10 stars 3 forks source link

Private conversations #123

Open bitplane opened 2 months ago

bitplane commented 2 months ago

Would it be possible to add a private mode, where conversations are not saved to disk at all? It would solve some potential compliance issues that would make this very useful in my day job (we're allowed to process certain types of confidential information in memory, but not allowed to save it to disk)

bitplane commented 2 months ago

Workaround for the Mac:

Create a link to a RAM disk in your conversations dir:

ln -s '/Volumes/LLM Private' $HOME/.cache/lm-studio/conversations/private

Each reboot, open the terminal and run this command:

# explanation:
# create a RAM disk but don't mount it
# use the output of that command to select the disk to be formatted
# after formatting, the disk will now be mounted at '/Volumes/LLM Private'
diskutil erasevolume HFS+ 'LLM Private' `hdiutil attach -nomount ram://102400`

Start a conversation in that chat folder and verify that it goes to the private disk. If the private folder isn't there then you can't chat privately.