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

d4e77280fc15a4abf8b4a3cd22da0c21d26821dd

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

2 files changed, +2 -9Ignore whitespace
public/index.html+2 -2
@@ -1983,12 +1983,12 @@
1983 </span>1983 </span>
1984 </div>1984 </div>
1985 </div>1985 </div>
1986 <div class="range-block" data-source="makersuite,deepseek,openrouter">1986 <div class="range-block" data-source="deepseek,openrouter">
1987 <label for="openai_show_thoughts" class="checkbox_label widthFreeExpand">1987 <label for="openai_show_thoughts" class="checkbox_label widthFreeExpand">
1988 <input id="openai_show_thoughts" type="checkbox" />1988 <input id="openai_show_thoughts" type="checkbox" />
1989 <span>1989 <span>
1990 <span data-i18n="Request model reasoning">Request model reasoning</span>1990 <span data-i18n="Request model reasoning">Request model reasoning</span>
1991 <i class="opacity50p fa-solid fa-circle-info" title="Gemini 2.0 Thinking / DeepSeek Reasoner"></i>1991 <i class="opacity50p fa-solid fa-circle-info" title="DeepSeek Reasoner"></i>
1992 </span>1992 </span>
1993 </label>1993 </label>
1994 <div class="toggle-description justifyLeft marginBot5">1994 <div class="toggle-description justifyLeft marginBot5">
src/endpoints/backends/chat-completions.js+0 -7
@@ -288,7 +288,6 @@ async function sendMakerSuiteRequest(request, response) {
288288
289 const model = String(request.body.model);289 const model = String(request.body.model);
290 const stream = Boolean(request.body.stream);290 const stream = Boolean(request.body.stream);
291 const showThoughts = Boolean(request.body.include_reasoning);
292 const isThinking = model.includes('thinking');291 const isThinking = model.includes('thinking');
293292
294 const generationConfig = {293 const generationConfig = {
@@ -337,12 +336,6 @@ async function sendMakerSuiteRequest(request, response) {
337 body.systemInstruction = prompt.system_instruction;336 body.systemInstruction = prompt.system_instruction;
338 }337 }
339338
340 if (isThinking && showThoughts) {
341 generationConfig.thinkingConfig = {
342 includeThoughts: true,
343 };
344 }
345
346 return body;339 return body;
347 }340 }
348341