mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Phi-4-mini function calling support #230
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 @kinfey on GitHub (Mar 2, 2025).
Phi-4-mini tools call is in system role , but Ollama not support ? Can you upgrade the tools to support this ?
@ParthSareen commented on GitHub (Mar 31, 2025):
Not sure what you mean? What the current template is right now - https://ollama.com/library/phi4-mini
We do seem to have the tools in the system role. You might be getting a pydantic error right now? There is a commit to fix that will do a release soon.
@yookoala commented on GitHub (Jun 12, 2025):
I've just tried to use Ollama's python library and Ollama with https://hf.co/unsloth/Phi-4-mini-instruct-GGUF. Seems either ollama-python or ollama fail to recognise the tool calling from the model. Not sure what the problem is.
Could this be an Ollama version issue? Or is this an ollama-python library issue?