diff --git a/README.md b/README.md index fe19922b..68dae880 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,10 @@ My goal is to make this AI assistant **local-first** and **privacy-focused**. Mo **Please make sure you go through this [Step-by-step setup guide](./localai_setup.md) to setup Local Copilot on your device correctly!** +I've got feedback about "Use Local Copilot" toggle being unnecesary, so it is removed in v2.4.1. Now, make sure your have `--cors` flag enabled in your LocalAI server (or .env `CORS=true` if you use Docker). Then simply fill in the OpenAI Proxy Base URL as "http://localhost:8080/v1" and restart the plugin to chat with your local models. + +When you are done, clear the OpenAI Proxy Base URL to switch back to non-local models. + #### 🤗 New to Copilot? Quick Guide for Beginners: diff --git a/images/local-copilot-setting.png b/images/local-copilot-setting.png index 4cab963f..c13a4712 100644 Binary files a/images/local-copilot-setting.png and b/images/local-copilot-setting.png differ diff --git a/manifest.json b/manifest.json index 9a1b8dd5..1ff1cfaf 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "copilot", "name": "Copilot", - "version": "2.4.0", + "version": "2.4.1", "minAppVersion": "0.15.0", "description": "A ChatGPT Copilot in Obsidian.", "author": "Logan Yang", diff --git a/package-lock.json b/package-lock.json index f98589c3..ea41418f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "obsidian-copilot", - "version": "2.4.0", + "version": "2.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "obsidian-copilot", - "version": "2.4.0", + "version": "2.4.1", "license": "AGPL-3.0", "dependencies": { "@huggingface/inference": "^1.8.0", diff --git a/package.json b/package.json index 09bd8582..9b95a5f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-copilot", - "version": "2.4.0", + "version": "2.4.1", "description": "ChatGPT integration for Obsidian", "main": "main.js", "scripts": { diff --git a/src/settings.ts b/src/settings.ts index c72fc84e..e820aa44 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -397,8 +397,12 @@ export class CopilotSettingTab extends PluginSettingTab { ); containerEl.createEl('h4', { text: 'Local Copilot (EXPERIMENTAL, NO INTERNET NEEDED!!)' }); - containerEl.createEl('h6', { text: 'To use Local Copilot, please check the doc/demo video to set up LocalAI server on your device. Once ready, switch on the toggle below, type in the LocalAI Model name you have, and pick LocalAI in the Copilot Chat model selection dropdown to chat with it!' }); - containerEl.createEl('h6', { text: 'Local models can be limited in capabilities and may not work for some use cases at this time. Keep in mind that it is still in early experimental phase. But it is definitely fun to try out!' }); + containerEl.createEl('p', { text: 'To use Local Copilot, please check the doc to set up LocalAI server on your device. Once ready,' }); + containerEl.createEl('p', { text: '1. Set OpenAI Proxy Base URL to http://localhost:8080/v1 under Advanced Settings.' }); + containerEl.createEl('p', { text: '2. Type in the LocalAI Model name you have below.' }); + containerEl.createEl('p', { text: '3. Pick LocalAI in the Copilot Chat model selection dropdown to chat with it!' }); + containerEl.createEl('p', { text: 'Local models can be limited in capabilities and may not work for some use cases at this time. Keep in mind that it is still in early experimental phase. But it is definitely fun to try out!' }); + containerEl.createEl('h6', { text: 'When you are done, clear the OpenAI Proxy Base URL to switch back to non-local models.' }); new Setting(containerEl) .setName("LocalAI Model") diff --git a/versions.json b/versions.json index 3db03b1c..64776420 100644 --- a/versions.json +++ b/versions.json @@ -21,5 +21,6 @@ "2.3.4": "0.15.0", "2.3.5": "0.15.0", "2.3.6": "0.15.0", - "2.4.0": "0.15.0" + "2.4.0": "0.15.0", + "2.4.1": "0.15.0" } \ No newline at end of file