| 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. |
| 395 | | 395 | |
| 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: {} }); |