pi-mono icon indicating copy to clipboard operation
pi-mono copied to clipboard

Z.ai Thinking Params

Open kaofelix opened this issue 4 days ago • 0 comments

The zai provider doesn't support the same reasoning params as other OpenAI compatible providers do. Looking at the API reference here, it accepts a thinking parameter like this:

"thinking": {
    "type": "enabled"
  }

(there's also clear_thinking which defaults to false in the coding plan endpoint and probably shouldn't be changed)

Right now, the UI will let me choose 5 different levels of thinking that have no effect. Ideally I would only have two thinking levels, on and off in the ui and that would set the right params for z.ai.

I don't know if this is a very specific issue to z.ai or if there are other providers with weird thinking params. I reckon it's a PITA to support all the crazy variations out there, but throwing it out there in case there's some clear path on how to fix this or make it more customisable.

kaofelix avatar Jan 13 '26 13:01 kaofelix