mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
Add a fish cors example (#445)
This might save a LOT of debugging for folks!
This commit is contained in:
parent
2fe7196a71
commit
dfb979b0cf
1 changed files with 2 additions and 0 deletions
|
|
@ -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!
|
||||
|
||||
<img src="./images/ollama-serve.png" alt="Ollama">
|
||||
|
|
|
|||
Loading…
Reference in a new issue