aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-11-06 16:39:09 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-11-06 16:39:09 +0200
commitb8b0805107e5ff312e958d612378305dbb770ac7 (patch)
tree1da618a18ca9a3e9277290931c64f3166ea502b8
parent976b4992c10e4f5f5a647b748fc0a5c9f7835ebb (diff)
downloadollama-logseq-b8b0805107e5ff312e958d612378305dbb770ac7.tar.xz
ollama-logseq-b8b0805107e5ff312e958d612378305dbb770ac7.zip
Removed no-cors mode
-rw-r--r--src/ollama.tsx1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ollama.tsx b/src/ollama.tsx
index f43df28..f6e9b97 100644
--- a/src/ollama.tsx
+++ b/src/ollama.tsx
@@ -74,7 +74,6 @@ 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',
},