From f63178b592924439c7afa037daf2c6dc975c01f3 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 22 Dec 2023 21:04:29 -0800 Subject: [PATCH] fix: header fields removed --- src/routes/(app)/+page.svelte | 4 +--- src/routes/(app)/c/[id]/+page.svelte | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index 29e6b518e..f7dd320b5 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -375,9 +375,7 @@ method: 'POST', headers: { Authorization: `Bearer ${$settings.OPENAI_API_KEY}`, - 'Content-Type': 'application/json', - 'HTTP-Referer': `https://ollamahub.com/`, - 'X-Title': `Ollama WebUI` + 'Content-Type': 'application/json' }, body: JSON.stringify({ model: model, diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index a33e8feb8..e063a5bc7 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -389,9 +389,7 @@ method: 'POST', headers: { Authorization: `Bearer ${$settings.OPENAI_API_KEY}`, - 'Content-Type': 'application/json', - 'HTTP-Referer': `https://ollamahub.com/`, - 'X-Title': `Ollama WebUI` + 'Content-Type': 'application/json' }, body: JSON.stringify({ model: model,