mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: header fields removed
This commit is contained in:
@@ -375,9 +375,7 @@
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${$settings.OPENAI_API_KEY}`,
|
Authorization: `Bearer ${$settings.OPENAI_API_KEY}`,
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json'
|
||||||
'HTTP-Referer': `https://ollamahub.com/`,
|
|
||||||
'X-Title': `Ollama WebUI`
|
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
model: model,
|
model: model,
|
||||||
|
|||||||
@@ -389,9 +389,7 @@
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${$settings.OPENAI_API_KEY}`,
|
Authorization: `Bearer ${$settings.OPENAI_API_KEY}`,
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json'
|
||||||
'HTTP-Referer': `https://ollamahub.com/`,
|
|
||||||
'X-Title': `Ollama WebUI`
|
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
model: model,
|
model: model,
|
||||||
|
|||||||
Reference in New Issue
Block a user