Gemini: don't send "thinkingConfig" to backend As it does absolutely nothing
| @@ -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"> |
| @@ -288,7 +288,6 @@ async function sendMakerSuiteRequest(request, response) { | |||
| 288 | 288 | ||
| 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'); |
| 293 | 292 | ||
| 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 | } |
| 339 | 338 | ||
| 340 | if (isThinking && showThoughts) { | ||
| 341 | generationConfig.thinkingConfig = { | ||
| 342 | includeThoughts: true, | ||
| 343 | }; | ||
| 344 | } | ||
| 345 | |||
| 346 | return body; | 339 | return body; |
| 347 | } | 340 | } |
| 348 | 341 | ||