[GH-ISSUE #15346] issue: Error parsing tool call arguments #56204

Closed
opened 2026-05-05 18:57:11 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @kienpro-dev on GitHub (Jun 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15346

Check Existing Issues

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

Installation Method

Docker

Open WebUI Version

0.6.15

Ollama Version (if applicable)

0.9.0

Operating System

Windows 11

Browser (if applicable)

No response

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

Open web UI uses model from Ollama with integrated native tool calling will call tool twice to calculate and return 2 results

Actual Behavior

Open web UI returns the following error
2025-06-27 09:37:13.946 | ERROR | open_webui.utils.middleware:post_response_handler:2080 - Error parsing tool call arguments: {"equation": "2 + 2"}{"equation": "1 + 1"} - {}

Image

Steps to Reproduce

  1. Use docker to run open web ui with ollama using GPU
  2. Download model Qwen3:4b in ollama
  3. Open Web UI use this model and native tool calling to call calculation tool (example tool from Open Web UI)
  4. Chat "1 + 1 and 2 + 2 = ? "
  5. Log the error

Logs & Screenshots

Image

Additional Information

Log from docker open web ui, ollama has no error log:
2025-06-27 09:37:13.946 | ERROR | open_webui.utils.middleware:post_response_handler:2080 - Error parsing tool call arguments: {"equation": "2 + 2"}{"equation": "1 + 1"} - {}

Originally created by @kienpro-dev on GitHub (Jun 27, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/15346 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.6.15 ### Ollama Version (if applicable) 0.9.0 ### Operating System Windows 11 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] 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). - [x] 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 Open web UI uses model from Ollama with integrated native tool calling will call tool twice to calculate and return 2 results ### Actual Behavior Open web UI returns the following error 2025-06-27 09:37:13.946 | ERROR | open_webui.utils.middleware:post_response_handler:2080 - Error parsing tool call arguments: {"equation": "2 + 2"}{"equation": "1 + 1"} - {} ![Image](https://github.com/user-attachments/assets/e2efe0e4-d4ba-4413-a525-34f863a4ecf1) ### Steps to Reproduce 1. Use docker to run open web ui with ollama using GPU 2. Download model Qwen3:4b in ollama 3. Open Web UI use this model and native tool calling to call calculation tool (example tool from Open Web UI) 4. Chat "1 + 1 and 2 + 2 = ? " 5. Log the error ### Logs & Screenshots ![Image](https://github.com/user-attachments/assets/16bc9e0a-bd4c-46fe-8eaa-9f4549afb1e9) ### Additional Information Log from docker open web ui, ollama has no error log: 2025-06-27 09:37:13.946 | ERROR | open_webui.utils.middleware:post_response_handler:2080 - Error parsing tool call arguments: {"equation": "2 + 2"}{"equation": "1 + 1"} - {}
GiteaMirror added the bug label 2026-05-05 18:57:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#56204