mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #22971] issue: Gemini models stuck in response when using "native" function calling mode with tool-related questions #58523
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @silenceroom on GitHub (Mar 24, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22971
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
No response
Operating System
MacOS
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
Gemini models should respond normally to questions that trigger function calling (tools), even in follow-up messages within a session.
Actual Behavior
When using "native" function calling mode:
Steps to Reproduce
Logs & Screenshots
Gemini stuck in response mode:
Additional Information
@tjbck commented on GitHub (Mar 24, 2026):
Backend logs? We're unable to assist without any concrete reproduction steps.
@seppel123 commented on GitHub (Mar 25, 2026):
Looks like i have a similar problem but i use OSS-120B.
@soreikomori commented on GitHub (Mar 26, 2026):
I've had this problem for a few months, as described in #19760. Docker logs show essentially nothing:
In my particular case, depending on what I set the model up with, I either get an instant "completed" with no content at all- this is the second message in the "completed" response JSON:
Or the eternal loop that @silenceroom described above.
This is the JSON for the "completions" response:
The reproduction steps are pretty much the ones mentioned:
https://generativelanguage.googleapis.com/v1beta/openaiURL, Google AI Studio API Key, and OpenAI as provider type. API completions.That's when it just completes and does nothing else or gets "stuck" thinking- refreshing the page results in the empty response.
@Global-Citizen commented on GitHub (Mar 27, 2026):
Same problem for a long time. Function calling doesn't work for Gemini models, but it works for others. I raised this issue under #19397, but unlucky.
@IamGrug commented on GitHub (Mar 27, 2026):
same issue here.
@seppel123 commented on GitHub (Mar 27, 2026):
Its not only Gemini Models, i have it with OSS120B, Anthropic Sonnet 4.6 and GPT 5.1 also.
There are no Errors in the log.
@Classic298 commented on GitHub (Mar 27, 2026):
I too cannot reproduce with any model in multiple different setups. How can i reproduce this?
@soreikomori commented on GitHub (Mar 27, 2026):
Did the model answer a prompt just fine? Part of me thinks this could be an API Key issue of some sort... I don't have this problem with GPT, but Gemini (I'm on Paid Tier 1) does indeed just decide to not respond.
@Classic298 commented on GitHub (Mar 27, 2026):
I use all models. Gemini, GPT, Claude, Mistral, various providers, never see anything like this. Always works
@soreikomori commented on GitHub (Mar 28, 2026):
What tools have you enabled, @Classic298? Have you set them up?
@soreikomori commented on GitHub (Mar 28, 2026):
Here's the video of what I did and how it keeps, well, not working:
https://github.com/user-attachments/assets/c718f263-7ec7-4968-9b14-b58c5fa086c7
@Global-Citizen commented on GitHub (Mar 28, 2026):
Hi @Classic298 , these settings work for GLM or Kimi on OpenRouter, but I’ve never been able to get them to work with Gemini on Google provider.
@seppel123 commented on GitHub (Apr 1, 2026):
Now i figured something out: my problem is that the reply is sometimes sent to the ‘Thoughts’ section. So if nothing appears as output, I can open the ‘Thoughts’ tag and see the reply. I think something is causing issues with closing and opening the tags for the different sections.
This is definitely a bug.
@Global-Citizen commented on GitHub (Apr 2, 2026):
Hi @seppel123 , how did you open the ‘Thoughts’ tag?
@seppel123 commented on GitHub (Apr 2, 2026):
Just click on the arrow
I hope they can fix that, its really annoying.
@Global-Citizen commented on GitHub (Apr 2, 2026):
Ok, thanks. Looks like my model didn't even start thinking. No 'Thought' section :/
@seppel123 commented on GitHub (Apr 2, 2026):
Ok i will create a new Issue for that.
@ellisd4 commented on GitHub (Apr 3, 2026):
I have the same issue with gemma4:31b (via Google API) and gpt-oss:20b (local via ollama).
@trinhkvo commented on GitHub (Apr 5, 2026):
This has been my issue with gemini api for months. The video posted by soreikomori is exactly my observation when prompting any gemini model to use any tool calling.
@silenceroom commented on GitHub (Apr 10, 2026):
sorry for the late response, super busy in the last few weeks.
With multiple rounds of test, I can reproduce the issue with below conditions:
It looks like the issue was related with the "built-in" tools with Gemini.
@soreikomori commented on GitHub (Apr 21, 2026):
Bug still up on 0.9.1. I should mention that back in the thread when this was first raised (for me at least), @jwhandy3 found a fix, but wasn't able to make a pull request. If anyone can confirm this works in their system, maybe this can be PR'd?