mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
tools not available in ollama #135
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zahid-ahmad on GitHub (Aug 19, 2024).
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
@asuivelentine commented on GitHub (Sep 8, 2024):
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.
@zahid-ahmad commented on GitHub (Sep 8, 2024):
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.
@ParthSareen commented on GitHub (Nov 27, 2024):
Closing this out - please use
.chatfor function calling!