From dfb979b0cfc819ce14b5fd2dde63513135ded1b1 Mon Sep 17 00:00:00 2001 From: Tristram Oaten Date: Mon, 22 Jul 2024 00:00:25 +0100 Subject: [PATCH] Add a fish cors example (#445) This might save a LOT of debugging for folks! --- local_copilot.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/local_copilot.md b/local_copilot.md index 5fcb8cdf..d6123bc1 100644 --- a/local_copilot.md +++ b/local_copilot.md @@ -44,6 +44,8 @@ Look for this parameter `llama_new_context_with_model: n_ctx` in your server log Now, **start the local server with `OLLAMA_ORIGINS=app://obsidian.md* ollama serve`, this will allow the Obsidian app to access the local server without CORS issues**. +> **NOTE**: If using `fish`, quote the env value: `OLLAMA_ORIGINS="app://obsidian.md*" ollama serve` + Again, `OLLAMA_ORIGINS=app://obsidian.md*` is required! Ollama