[GH-ISSUE #15891] Tool calling fails or is inconsistent with qwen models #72186

Closed
opened 2026-05-05 03:36:25 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @blouflab on GitHub (Apr 30, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15891

What is the issue?

I am experiencing issues where tool calling (function calling) fails to trigger or returns malformed responses when using Qwen (2.5, 3, 3.5, 3.6 tested) models, while the same implementation works perfectly with other models like gemma.

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @blouflab on GitHub (Apr 30, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15891 ### What is the issue? I am experiencing issues where tool calling (function calling) fails to trigger or returns malformed responses when using Qwen (2.5, 3, 3.5, 3.6 tested) models, while the same implementation works perfectly with other models like gemma. ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-05-05 03:36:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#72186