logancyang / obsidian-copilot

THE Copilot in Obsidian

Home Page:https://www.obsidiancopilot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cors when using local ollama

wp-jackliu opened this issue · comments

  • Screenshot of note + Copilot chat pane + dev console added (required)
    image

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.

Again, OLLAMA_ORIGINS=app://obsidian.md* is required!

Yeah, I follow this doc. but also not work .please help me.

Oh the fish shell's issue ....

!!!! Please note that when using the command line, please exit ‘fish’ before exec OLLAMA_ORIGINS=app://obsidian.md* ollama serve

OMG this kicked my ass lol

here's the fish workaround:

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

you have to QUOTE the env body!