open-webui/backend/open_webui/tools
Classic298 e7e006e781
fix: use admin-configured WEB_SEARCH_RESULT_COUNT as default (#23488)
The built-in search_web tool hardcoded count=5 as the default,
ignoring the admin-configured WEB_SEARCH_RESULT_COUNT setting.
When the LLM did not specify a count, the tool always returned 5
results regardless of admin configuration.

Now the tool defaults to the admin-configured value when the LLM
omits the count parameter, while still capping LLM-requested
values at the admin maximum to prevent abuse.

Closes #23485
2026-04-08 13:13:44 -07:00
..
__init__.py feat: native function calling for built-in tools 2026-01-05 04:45:17 +04:00
builtin.py fix: use admin-configured WEB_SEARCH_RESULT_COUNT as default (#23488) 2026-04-08 13:13:44 -07:00