Exclude gemini-2.0-flash-lite from web search

This commit is contained in:
cloak1505
2025-04-26 13:04:00 -05:00
parent a764e5ce54
commit 05e60ff00b

View File

@ -393,7 +393,7 @@ async function sendMakerSuiteRequest(request, response) {
} }
// Most of the other models allow for setting the threshold of filters, except for HARM_CATEGORY_CIVIC_INTEGRITY, to OFF. // Most of the other models allow for setting the threshold of filters, except for HARM_CATEGORY_CIVIC_INTEGRITY, to OFF.
if (enableWebSearch && !useMultiModal && !isGemma && !isLearnLM) { if (enableWebSearch && !useMultiModal && !isGemma && !isLearnLM && !model.includes('gemini-2.0-flash-lite')) {
const searchTool = model.includes('1.5') || model.includes('1.0') const searchTool = model.includes('1.5') || model.includes('1.0')
? ({ google_search_retrieval: {} }) ? ({ google_search_retrieval: {} })
: ({ google_search: {} }); : ({ google_search: {} });