r/PiCodingAgent • u/circumcised_hobbit • 1d ago
Question Does Pi /thinking send reasoning effort field?
I noticed that when using Pi Agent with my custom local server (often llama.cpp), /thinking displays a token budget near to the thinking level name: ex. low(2k) medium(4k). I also never set the reasoning_effort field in llama server. Does Pi only send a reasoning budget (token limit) or does it also send the reasoning effort field, effectively changing the thinking level? Should I set reasoning effort in llama server?
0
Upvotes
0
u/randomgenericbot 1d ago
You can define the reasoning budget per thinking level in .pi/agent/settings.json That setting is global per thinking level, sadly, not per model:
You can also set a text that gets appended when reasoning took to long (thinking budget exceeded) to prevent model confusion, why it stopped mid sentence. This is per model and belongs into models.json, example from my qwen3.8 config. You can also control, what thinking modes the model accepts (Qwen3.8 allows low, medium and xhigh, nothing else)
0
u/nicholasyang 1d ago
IIUC pi uses the openai api to connect llama.cpp, and thinking level maps to the reasoning_effort field in the API. The budgets "2k", "4k" are only UI labels.
0
u/Maheidem 1d ago
I built a extension to solve that part for more novel self hosting..
Maybe it helps you
https://pi.dev/packages/@maheidem/model-discovery
Built for my day to day needs, and been up keeping for fun