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

Phi-4-mini function calling support

Open kinfey opened this issue 10 months ago • 2 comments

Phi-4-mini tools call is in system role , but Ollama not support ? Can you upgrade the tools to support this ?

kinfey avatar Mar 03 '25 04:03 kinfey

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 avatar Mar 31 '25 23:03 ParthSareen

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 avatar Jun 12 '25 04:06 yookoala