issue: tool calls fail when model makes multiple tool calls in one response

#15690

Issue Details

20 days ago
No assignee
bug
Master-Pr0grammerMaster-Pr0grammer
opened 20 days ago
Author

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

v0.6.15

Ollama Version (if applicable)

0.9.6

Operating System

Ubuntu 24.04.1

Browser (if applicable)

Chrome

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

when the model calls two tools, they should be both be executed individually (in order).

Actual Behavior

openwebui gets confused and just ends the chat completion run.

for example if the tool is print(str), and it gets called twice, openwebui will output Executing printprint..., and immediately end there without executing or continuing to generate the next response

Steps to Reproduce

  1. get a model that is capable of outputting multiple tool calls (I used qwen3:8b)
  2. give it access to a tool
  3. ask it to use the tool twice in a row to do two independent tasks

Logs & Screenshots

index.js:1183 [tiptap warn]: Duplicate extension names found: ['codeBlock']. This can lead to issues. resolve @ index.js:1183 ResponseMessage.svelte:573 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 (anonymous) @ ResponseMessage.svelte:573

Image

Additional Information

This is not a model problem, i have tried several models, and all of them had the same issue in openwebui. when i run the same prompt through my own ollama api based script, it has no issues calling the tools.