Exclude gemini-2.0-flash-lite from web search

05e60ff00bef9dbb12487b34d321c7d78959cafc

cloak1505 <170299980+cloak1505@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
src/endpoints/backends/chat-completions.js+1 -1
@@ -393,7 +393,7 @@ async function sendMakerSuiteRequest(request, response) {
393 }393 }
394 // Most of the other models allow for setting the threshold of filters, except for HARM_CATEGORY_CIVIC_INTEGRITY, to OFF.394 // Most of the other models allow for setting the threshold of filters, except for HARM_CATEGORY_CIVIC_INTEGRITY, to OFF.
395395
396 if (enableWebSearch && !useMultiModal && !isGemma && !isLearnLM) {396 if (enableWebSearch && !useMultiModal && !isGemma && !isLearnLM && !model.includes('gemini-2.0-flash-lite')) {
397 const searchTool = model.includes('1.5') || model.includes('1.0')397 const searchTool = model.includes('1.5') || model.includes('1.0')
398 ? ({ google_search_retrieval: {} })398 ? ({ google_search_retrieval: {} })
399 : ({ google_search: {} });399 : ({ google_search: {} });