A chrome extension to allow users to use local large language models for auto complete suggestions on online text editors. Currently supports google docs.
The Open Web Copilot is open source software protected by the GNU Lesser General Public License v3.0 ( LGPL-3.0-or-later ).
- Clone this repo:
git clone https://github.com/cagostino/open-web-copilot.git
- Serve the backend llm with ollama
ollama run llama3 #or other ollama models
If you want to use other models, be sure to change the MODEL_NAME param in the .env file to the correct model name. Smaller ones like phi3, qwen, deepseek-coder are good options if your hardware is not as powerful.
3.Install the necessary node packages:
npm install dotenv
npm install express
npm install node-fetch
npm install cors
Run the node server:
node server.js
Load the chrome extension into your browser by doing "load unpacked" and selecting the folder containing these files.
Once it's ready and running, as you add new text to your doc it will periodically send it to the LLM for suggestions after you've finished typing. Clicking on the suggestion box copies it to one's clipboard.
Planned improvements
- Changing the behavior of the suggestion box to auto fill in to the document at the cursor upon clicking.
- Support llama-cpp -like servers and OpenAI + Claude + other providers through API keys.
- Expanding to support suggestions in other online text editors (Overleaf, OneDrive Word+PPT, other Google Drive services).