Gemini: don't send "thinkingConfig" to backend As it does absolutely nothing

d4e77280fc15a4abf8b4a3cd22da0c21d26821dd

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -9Showing whitespace changes
public/index.html+2 -2
@@ -1983,12 +1983,12 @@
19831983 </span>
19841984 </div>
19851985 </div>
19861986 <div class="range-block" data-source="makersuite,deepseek,openrouter">
19871987 <label for="openai_show_thoughts" class="checkbox_label widthFreeExpand">
19881988 <input id="openai_show_thoughts" type="checkbox" />
19891989 <span>
19901990 <span data-i18n="Request model reasoning">Request model reasoning</span>
19911991 <i class="opacity50p fa-solid fa-circle-info" title="Gemini 2.0 Thinking / DeepSeek Reasoner"></i>
19921992 </span>
19931993 </label>
19941994 <div class="toggle-description justifyLeft marginBot5">
src/endpoints/backends/chat-completions.js+0 -7
@@ -288,7 +288,6 @@ async function sendMakerSuiteRequest(request, response) {
288288
289289 const model = String(request.body.model);
290290 const stream = Boolean(request.body.stream);
291- const showThoughts = Boolean(request.body.include_reasoning);
292291 const isThinking = model.includes('thinking');
293292
294293 const generationConfig = {
@@ -337,12 +336,6 @@ async function sendMakerSuiteRequest(request, response) {
337336 body.systemInstruction = prompt.system_instruction;
338337 }
339338
340- if (isThinking && showThoughts) {
341- generationConfig.thinkingConfig = {
342- includeThoughts: true,
343- };
344- }
345-
346339 return body;
347340 }
348341