diff options
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | src/ollama.tsx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json index a53a2e0..88a15f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ollama-logseq", - "version": "0.1.0", + "version": "1.0.1", "main": "dist/index.html", "scripts": { "dev": "vite", diff --git a/src/ollama.tsx b/src/ollama.tsx index f6e9b97..f43df28 100644 --- a/src/ollama.tsx +++ b/src/ollama.tsx @@ -74,6 +74,7 @@ async function promptLLM(prompt: string) { try { const response = await fetch(`http://${logseq.settings.host}/api/generate`, { method: 'POST', + mode: 'no-cors', headers: { 'Content-Type': 'application/json', }, |
