fix: header fields removed

This commit is contained in:
Timothy J. Baek 2023-12-22 21:04:29 -08:00
parent b79c06023b
commit f63178b592
2 changed files with 2 additions and 6 deletions

View file

@ -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,

View file

@ -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,