Gemini API: https://ai.google.dev/gemini-api/docs/google-search#rest
By using curl I asked the date and it returned the correct answer, so my API Key permissions are fine.
However, in aichat with gemini:gemini-3.1-flash-lite-preview the same query returns a 2024 date, therefore the live web search tool is not being used.
config.yaml
clients:
- type: gemini
patch:
tools:
- google_search: {}
FWIW: I already tried different temperature values and supported gemini models.
What is the correct way to enable it?
EDIT: Does anyone know how to limit output tokens?
Gemini API: https://ai.google.dev/gemini-api/docs/google-search#rest
By using
curlI asked the date and it returned the correct answer, so my API Key permissions are fine.However, in
aichatwithgemini:gemini-3.1-flash-lite-previewthe same query returns a 2024 date, therefore the live web search tool is not being used.config.yaml
FWIW: I already tried different
temperaturevalues and supported gemini models.What is the correct way to enable it?
EDIT: Does anyone know how to limit output tokens?