Bug in tool_calls response parsing #119

Closed
opened 2026-02-15 16:28:06 -05:00 by yindo · 3 comments
Owner

Originally created by @evilsocket on GitHub (Jul 26, 2024).

This should be "arguments", not "args"

Originally created by @evilsocket on GitHub (Jul 26, 2024). [This should be "arguments", not "args"](https://github.com/ollama/ollama-python/blob/main/ollama/_types.py#L64)
yindo closed this issue 2026-02-15 16:28:06 -05:00
Author
Owner

@zeelrupapara commented on GitHub (Jul 28, 2024):

I got it...
I also found here in the response: https://github.com/ollama/ollama/blob/main/docs/api.md#chat-request-with-tools
So in response, we got the arguments not args in json

@zeelrupapara commented on GitHub (Jul 28, 2024): I got it... I also found here in the response: https://github.com/ollama/ollama/blob/main/docs/api.md#chat-request-with-tools So in response, we got the arguments not args in json
Author
Owner

@evilsocket commented on GitHub (Jul 28, 2024):

yep! simple fix that will actually enable function calling :D

@evilsocket commented on GitHub (Jul 28, 2024): yep! simple fix that will *actually* enable function calling :D
Author
Owner

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

Thanks for all the help. Closed by https://github.com/ollama/ollama-python/pull/236

@joshyan1 commented on GitHub (Jul 29, 2024): Thanks for all the help. Closed by https://github.com/ollama/ollama-python/pull/236
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#119