ohmplatform / FreedomGPT

This codebase is for a React and Electron-based app that executes the FreedomGPT LLM locally (offline and private) on Mac and Windows using a chat-based interface
http://www.freedomgpt.com
GNU General Public License v3.0
2.61k stars 358 forks source link

suggestions for the project #7

Open TheOnlyFastCoder2 opened 1 year ago

TheOnlyFastCoder2 commented 1 year ago

Use the main directory, instead of the home path.I don't like it when the c disk is cluttered, and even more so the weights can weigh a lot.

//index.ts
//before:
const homeDir = app.getPath("home");
const MODEL_LOCATION = homeDir + "/FreedomGPT";
//after:
const rootDir = process.cwd();
const MODEL_LOCATION = rootDir + "/weights";