diff --git a/public/index.html b/public/index.html index a7c62b44f..c37e49d70 100644 --- a/public/index.html +++ b/public/index.html @@ -691,7 +691,7 @@ -
+
Temperature
@@ -704,7 +704,7 @@
-
+
Frequency Penalty
@@ -717,7 +717,7 @@
-
+
Presence Penalty
@@ -743,7 +743,7 @@
-
+
Top P
diff --git a/public/scripts/openai.js b/public/scripts/openai.js index ce05244a7..025afe46e 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -2270,10 +2270,6 @@ async function sendOpenAIRequest(type, messages, signal) { } if (isPollinations) { - delete generate_data.temperature; - delete generate_data.top_p; - delete generate_data.frequency_penalty; - delete generate_data.presence_penalty; delete generate_data.max_tokens; } diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index 5e0205771..19a32b07b 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -1340,11 +1340,14 @@ router.post('/generate', function (request, response) { } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.POLLINATIONS) { apiUrl = API_POLLINATIONS; apiKey = 'NONE'; - headers = {}; + headers = { + 'Authorization': '', + }; bodyParams = { reasoning_effort: request.body.reasoning_effort, private: true, referrer: 'sillytavern', + seed: request.body.seed ?? Math.floor(Math.random() * 99999999), }; } else { console.warn('This chat completion source is not supported yet.'); diff --git a/src/endpoints/openai.js b/src/endpoints/openai.js index 3604634c3..bde251fe8 100644 --- a/src/endpoints/openai.js +++ b/src/endpoints/openai.js @@ -148,6 +148,7 @@ router.post('/caption-image', async (request, response) => { } if (request.body.api === 'pollinations') { + headers = { Authorization: '' }; apiUrl = 'https://text.pollinations.ai/openai/chat/completions'; }