diff --git a/controller/ollama.js b/controller/ollama.js index 60b169c..7deda45 100644 --- a/controller/ollama.js +++ b/controller/ollama.js @@ -26,6 +26,7 @@ async function chatJSON(system, user){ headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${conf.ollama.apiKey}`, + 'User-Agent': 'tpbproxy/1.0 (organize; +https://github.com/wmantly/tpbproxy)', }, body: JSON.stringify({ model: conf.ollama.model, diff --git a/controller/search.js b/controller/search.js index 3e98f2a..b07fcb1 100644 --- a/controller/search.js +++ b/controller/search.js @@ -194,6 +194,7 @@ async function rankReleases(candidates, meta){ headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${conf.ollama.apiKey}`, + 'User-Agent': 'tpbproxy/1.0 (search; +https://github.com/wmantly/tpbproxy)', }, body: JSON.stringify(body), });