LocalLLaMA

Gemma 4, llama.cpp, tool calls, and tool results – ChatGPT fixed it for me

I have been trying to use Gemma 4 for tool calling but kept getting errors like a lot of people. I asked ChatGPT to help me figure it out. Gave it the chat template, it had me try a few different messages, and the tool calls kept breaking. It could mak…