[GH-ISSUE #11099] Ollama v0.9.1 API - functions without parameters are not being called #53834

Closed
opened 2026-04-29 04:50:34 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Jimex on GitHub (Jun 17, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11099

Originally assigned to: @jmorganca on GitHub.

What is the issue?

The following API call was working in v0.9.0; however, in v0.9.1, the API response no longer includes the tool calls.
The same problem occurs with other models as well.

{
    "model": "qwen3:1.7b",
    "messages": [
        {
            "role": "system",
            "content": "You are a helpful AI assistant"
        },
        {
            "role": "user",
            "content": "Check the weather and let me know if I need an umbrella."
        }
    ],
    "stream": true,
    "think": false,
    "tools": [
        {
            "type": "function",
            "function": {
                "name": "GetWeather",
                "description": "Gets the weather",
                "parameters": {
                    "type": "object",
                    "properties": {},
                    "required": null
                }
            }
        }
    ]
}

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @Jimex on GitHub (Jun 17, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11099 Originally assigned to: @jmorganca on GitHub. ### What is the issue? The following API call was working in v0.9.0; however, in v0.9.1, the API response no longer includes the tool calls. The same problem occurs with other models as well. ```json { "model": "qwen3:1.7b", "messages": [ { "role": "system", "content": "You are a helpful AI assistant" }, { "role": "user", "content": "Check the weather and let me know if I need an umbrella." } ], "stream": true, "think": false, "tools": [ { "type": "function", "function": { "name": "GetWeather", "description": "Gets the weather", "parameters": { "type": "object", "properties": {}, "required": null } } } ] } ``` ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-29 04:50:34 -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#53834