Desktop Chat Application That Uses Local AI Models for Enhanced Privacy
Before installing the application, ensure that you have Ollama installed locally.
- Install Ollama:
- Visit the Ollama Download Page and follow the installation instructions.
- After installing, run the following command to start the DeepSeek model:
ollama run deepseek-r1:8b
- Note: This model is based on your PC's performance. If you believe your system might not handle this model well, please choose a different model from the Ollama DeepSeek Library and update the model name in the main code accordingly.
In the main.ts file, locate the IPC handler and update the model name if needed:
ipcMain.handle("chat-deepseek", async (event, args) => {
const { deepSeekFormMessages } = args;
// Ollama Chat
const response = await ollama.chat({
model: "deepseek-r1:8b", // Change the model name here based on the one you installed
messages: deepSeekFormMessages,
});
return response.message.content;
});git clone https://github.com/bogdanishere/Desktop-App---ElectronJsI am using Node.js version 15. Make sure to install it if you don’t have Node on your computer, otherwise, you might encounter issues while running the app.
npm installnpm startnpm run make