From d4e77280fc15a4abf8b4a3cd22da0c21d26821dd Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 9 Feb 2025 19:03:31 +0200 Subject: [PATCH] Gemini: don't send "thinkingConfig" to backend As it does absolutely nothing --- public/index.html | 4 ++-- src/endpoints/backends/chat-completions.js | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/public/index.html b/public/index.html index 20ffc6d0b..703e648a9 100644 --- a/public/index.html +++ b/public/index.html @@ -1983,12 +1983,12 @@ -
+
diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index 914bf0d28..f9407a9d8 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -288,7 +288,6 @@ async function sendMakerSuiteRequest(request, response) { const model = String(request.body.model); const stream = Boolean(request.body.stream); - const showThoughts = Boolean(request.body.include_reasoning); const isThinking = model.includes('thinking'); const generationConfig = { @@ -337,12 +336,6 @@ async function sendMakerSuiteRequest(request, response) { body.systemInstruction = prompt.system_instruction; } - if (isThinking && showThoughts) { - generationConfig.thinkingConfig = { - includeThoughts: true, - }; - } - return body; }