You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Exposing Gemma 4 with Unsloth run command leaks thinking / tool calling blocks #6471
I am running unsloth run --model unsloth/gemma-4-12b-it-GGUF:UD-Q4_K_XL to expose Gemma 4 as an OpenAI-compatible endpoints, and using it in pi.
The server is running fine (hitting the /models endpoint returns the expected model description result).
However when I try to run a query in pi for exploring a codebase, the LLM message I get contains thinking and tool calling blocks:
<think>The user wants to change the ...
...
First, I'll list the files in the root directory to find the backend
folder.</think><|tool_call>call:ls{path:"."}<tool_call|>
I don't think this is the expected behavior: these blocks should have been parsed and respectively put into the reasoning_content and tool_calls fields of the response (I might be wrong on the exact semantics of the field).
The most impactful consequence is that the harness cannot actually execute the tool calls, which results in a quite useless coding agent...
Maybe there is a chat template option missing somewhere?
Activity
Merge branch 'main' into fix-gemma4-openai-api-streams