aboutsummaryrefslogtreecommitdiff
path: root/src/ollama.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ollama.tsx')
-rw-r--r--src/ollama.tsx1
1 files changed, 1 insertions, 0 deletions
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',
},