tools not available in ollama
I am trying to use tools attribute for function calling, but it is showing that there is no attribute tools in ollama. I tried by upgrading ollama
I stumbled across the same issue.
After ensuring ollama server is 0.2.6 or above and ollama-python is above 0.3.0, I realized that I was trying to use function calling with .generate() instead of .chat().
This makes sense, since you need multiple calls to ollama until the final answer is generated. The context would not be part of the .generate() call.
The example works well.
I stumbled across the same issue. After ensuring ollama server is 0.2.6 or above and ollama-python is above 0.3.0, I realized that I was trying to use function calling with
.generate()instead of.chat().This makes sense, since you need multiple calls to ollama until the final answer is generated. The context would not be part of the
.generate()call. The example works well.
Thanks for you response, What do you think about using function calling in chat bot that makes phone calls. I think function calling is for specific cases where you have to mention that field or words. For example in ollama's python documentation we have to mention weather, or flight time. It should match the exact words. And chat() do not allow responses to be conversation matter.
Closing this out - please use .chat for function calling!