ollama-python icon indicating copy to clipboard operation
ollama-python copied to clipboard

Bug in tool_calls response parsing

Open evilsocket opened this issue 1 year ago • 2 comments

This should be "arguments", not "args"

evilsocket avatar Jul 26 '24 11:07 evilsocket

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 avatar Jul 28 '24 07:07 zeelrupapara

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

evilsocket avatar Jul 28 '24 09:07 evilsocket

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

joshyan1 avatar Jul 29 '24 17:07 joshyan1