Phi-4-mini function calling support #230

Open
opened 2026-02-15 16:28:56 -05:00 by yindo · 2 comments
Owner

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 ?

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 ?
Author
Owner

@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.

@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.
Author
Owner

@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?

@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](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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#230