How to config ollama using OLLAMA_ORIGINS windows

When using the Ollama plugin for Obsidian on Windows, you may encounter an issue where the provided instruction to run the command OLLAMA_ORIGINS=app://obsidian.md*; ollama serve does not work. This is because the syntax used in the original command is specific to Unix-based systems and is not compatible with Windows.

To resolve this issue, you can use the following command in Windows:

$env:OLLAMA_ORIGINS="app://obsidian.md*"; ollama serve  

This command sets the OLLAMA_ORIGINS environment variable to “app://obsidian.md*” and then runs the ollama serve command, allowing you to use the Ollama plugin with Obsidian on Windows successfully.


Back to top

Copyright © 2019 - 2024 Johnny Li. All contents licensed under CC BY-NC-SA 4.0 本站所有内容基于 CC BY-NC-SA 4.0 协议发布,转载需要署名.
Please read the LICENSE file for specific language governing permissions and limitations under the License.

Page last modified: Apr 24 2024 at 09:38 PM.

Edit this page on GitHub