Add a fish cors example (#445)

This might save a LOT of debugging for folks!
This commit is contained in:
Tristram Oaten 2024-07-22 00:00:25 +01:00 committed by GitHub
parent 2fe7196a71
commit dfb979b0cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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">