[GH-ISSUE #6042] strange tool response #50292

Open
opened 2026-04-28 14:59:02 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @asyncfncom on GitHub (Jul 29, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6042

What is the issue?

The prompt was "call fibonacci function to determine 7 element of the sequence".

I wonder if there should be 2 tool calls.

{
    "model": "llama3.1:8b",
    "created_at": "2024-07-29T09:32:02.5425761Z",
    "message": {
        "role": "assistant",
        "content": "",
        "tool_calls": [
            {
                "function": {
                    "name": "fibonacci",
                    "arguments": {
                        "n": null
                    }
                }
            },
            {
                "function": {
                    "name": "fibonacci",
                    "arguments": {
                        "n": 7
                    }
                }
            }
        ]
    },
    "done_reason": "stop",
    "done": true,
    "total_duration": 17912684000,
    "load_duration": 4394720300,
    "prompt_eval_count": 132,
    "prompt_eval_duration": 583579000,
    "eval_count": 85,
    "eval_duration": 12932451000
}

OS

Windows

GPU

Nvidia

CPU

AMD

Ollama version

0.3.0

Originally created by @asyncfncom on GitHub (Jul 29, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6042 ### What is the issue? The prompt was "call fibonacci function to determine 7 element of the sequence". I wonder if there should be 2 tool calls. ``` { "model": "llama3.1:8b", "created_at": "2024-07-29T09:32:02.5425761Z", "message": { "role": "assistant", "content": "", "tool_calls": [ { "function": { "name": "fibonacci", "arguments": { "n": null } } }, { "function": { "name": "fibonacci", "arguments": { "n": 7 } } } ] }, "done_reason": "stop", "done": true, "total_duration": 17912684000, "load_duration": 4394720300, "prompt_eval_count": 132, "prompt_eval_duration": 583579000, "eval_count": 85, "eval_duration": 12932451000 } ``` ### OS Windows ### GPU Nvidia ### CPU AMD ### Ollama version 0.3.0
GiteaMirror added the bug label 2026-04-28 14:59:02 -05:00
Author
Owner

@RKwork85 commented on GitHub (Jul 29, 2024):

+1

<!-- gh-comment-id:2255504260 --> @RKwork85 commented on GitHub (Jul 29, 2024): +1
Author
Owner

@mitar commented on GitHub (Aug 15, 2024):

I wonder how does one tell which tool response belong to which tool call? Other APIs have IDs to help with that.

<!-- gh-comment-id:2292323741 --> @mitar commented on GitHub (Aug 15, 2024): I wonder how does one tell which tool response belong to which tool call? Other APIs have IDs to help with that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#50292