Gemini: don't send "thinkingConfig" to backend As it does absolutely nothing
| @@ -1983,12 +1983,12 @@ | ||
| 1983 | 1983 | </span> |
| 1984 | 1984 | </div> |
| 1985 | 1985 | </div> |
| 1986 | 1986 | <div class="range-block" data-source="makersuite,deepseek,openrouter"> |
| 1987 | 1987 | <label for="openai_show_thoughts" class="checkbox_label widthFreeExpand"> |
| 1988 | 1988 | <input id="openai_show_thoughts" type="checkbox" /> |
| 1989 | 1989 | <span> |
| 1990 | 1990 | <span data-i18n="Request model reasoning">Request model reasoning</span> |
| 1991 | 1991 | <i class="opacity50p fa-solid fa-circle-info" title="Gemini 2.0 Thinking / DeepSeek Reasoner"></i> |
| 1992 | 1992 | </span> |
| 1993 | 1993 | </label> |
| 1994 | 1994 | <div class="toggle-description justifyLeft marginBot5"> |
| @@ -288,7 +288,6 @@ async function sendMakerSuiteRequest(request, response) { | ||
| 288 | 288 | |
| 289 | 289 | const model = String(request.body.model); |
| 290 | 290 | const stream = Boolean(request.body.stream); |
| 291 | - const showThoughts = Boolean(request.body.include_reasoning); | |
| 292 | 291 | const isThinking = model.includes('thinking'); |
| 293 | 292 | |
| 294 | 293 | const generationConfig = { |
| @@ -337,12 +336,6 @@ async function sendMakerSuiteRequest(request, response) { | ||
| 337 | 336 | body.systemInstruction = prompt.system_instruction; |
| 338 | 337 | } |
| 339 | 338 | |
| 340 | - if (isThinking && showThoughts) { | |
| 341 | - generationConfig.thinkingConfig = { | |
| 342 | - includeThoughts: true, | |
| 343 | - }; | |
| 344 | - } | |
| 345 | - | |
| 346 | 339 | return body; |
| 347 | 340 | } |
| 348 | 341 | |