[GH-ISSUE #5813] Bug: ToolCall issue #50135

Closed
opened 2026-04-28 14:18:42 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @KSemenenko on GitHub (Jul 20, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5813

What is the issue?

Describe the bug
Tool Calling parameters

To Reproduce
I use Ollama witn OpenAI API.

I used this model
https://ollama.com/library/llama3-groq-tool-use

and Im doung function calling (for gpt4o this code works perfectly)

But I see this as text asnwer from model.

<tool_call> {“id”: 0, “name”: “createReservation-Answer”, “arguments”: {“amount”: 1, “roomName”: “Single Room”, “startDate”: “2024-07-21”, “endDate”: “2024-07-23”}} </tool_call>

and the function doesn't called.

Expected behavior
I expected my function will called.

maybe related https://github.com/microsoft/semantic-kernel/issues/7376

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.2.7

Originally created by @KSemenenko on GitHub (Jul 20, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5813 ### What is the issue? **Describe the bug** Tool Calling parameters **To Reproduce** I use Ollama witn OpenAI API. I used this model https://ollama.com/library/llama3-groq-tool-use and Im doung function calling (for gpt4o this code works perfectly) But I see this as text asnwer from model. ``` <tool_call> {“id”: 0, “name”: “createReservation-Answer”, “arguments”: {“amount”: 1, “roomName”: “Single Room”, “startDate”: “2024-07-21”, “endDate”: “2024-07-23”}} </tool_call> ``` and the function doesn't called. **Expected behavior** I expected my function will called. maybe related https://github.com/microsoft/semantic-kernel/issues/7376 ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.2.7
GiteaMirror added the bug label 2026-04-28 14:18:42 -05:00
Author
Owner

@KSemenenko commented on GitHub (Jul 20, 2024):

Maybe this is sometgin is not supported in ollama api?
https://platform.openai.com/docs/api-reference/chat/create#chat-create-tool_choice

<!-- gh-comment-id:2241190855 --> @KSemenenko commented on GitHub (Jul 20, 2024): Maybe this is sometgin is not supported in ollama api? https://platform.openai.com/docs/api-reference/chat/create#chat-create-tool_choice
Author
Owner

@rick-github commented on GitHub (Jul 20, 2024):

dupe https://github.com/ollama/ollama/issues/5796

<!-- gh-comment-id:2241190953 --> @rick-github commented on GitHub (Jul 20, 2024): dupe https://github.com/ollama/ollama/issues/5796
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#50135