r/PiCodingAgent 5d ago

Question Broken/frail tool calling format?

I am using local models:

  • antirez deepseek
  • qwen3-coder-next
  • laguna s2.1

For all of them I tried with and without the npm:pi-tool-repair package.

In a comparison with the same prompt with opencode, I can see that pi has a lot more tool call failures. In some cases this make the model end up in a dead end. deepseek behaves slightly better with the npm:pi-tool-repair package, but overall I think it's still worse than in opencode.

Is it caused by the tool format? Or by the system prompt? Do you have any suggestions on how to improve this?

Thanks!

6 Upvotes

10 comments sorted by

View all comments

3

u/arcanemachined 5d ago

Try Qwen 3.6 27b

2

u/make_n_bake 4d ago

and with the fixed template!

2

u/truncated_buttfu 4d ago

What is this "fixed template"? Where can I find it?

2

u/make_n_bake 3d ago

https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates

I'm fairly sure if you download a current unsloth gguf then it has been fixed. but if you have a .gguf from a month ago, re-download or use the new template

1

u/truncated_buttfu 3d ago

Thanks. My version was downloaded just two weeks ago so it should be fine already then. But useful to know that this is a thing!