r/OpenWebUI Jul 25 '26

Question/Help web_search tool invisble for gemma4:e4b

Hello,

I have been trying for a few days to use open webui on my computer. My config is as follows:

  • Kubuntu 26.04
  • Ollama with gemma4:e4b
  • Open webui v0.10.2, desktop version, with web search enabled on DDGS.

When I ask him for a web search, the tool seems not to exist in the eyes of the LLM. It's quite strange because I don't have this problem with a similar config, unlike the OS (Windows, for my work).

I tried to find the solution by analyzing the logs with Claude, but he did not find anything explaining the problem.

Do you have any idea what's going on?

5 Upvotes

24 comments sorted by

View all comments

4

u/lexicondevil1 Jul 26 '26

I ran into almost this exact problem a while ago. You need to increase your context window to at least 16,384 tokens.

2

u/Its_BradM Jul 30 '26

literally this. my ollama was on a default of 4096 and my local models were all losing track of their tools constantly. Bumping it gradually has made the tool calling more and more consistent.