Fix z.ai thinking/reasoning params, fixes #688

Z.ai uses thinking: { type: "enabled" | "disabled" } instead of
OpenAI's reasoning_effort. Added thinkingFormat compat flag to handle
this. Thinking is now explicitly enabled/disabled based on user setting.
This commit is contained in:
Mario Zechner 2026-01-13 18:26:17 +01:00
parent 00ba005e50
commit 09d409cc92
7 changed files with 29 additions and 10 deletions

View file

@ -14,6 +14,7 @@
### Fixed
- Fix API key resolution after model switches by using provider argument ([#691](https://github.com/badlogic/pi-mono/pull/691) by [@joshp123](https://github.com/joshp123))
- Fixed z.ai thinking/reasoning: thinking toggle now correctly enables/disables thinking for z.ai models ([#688](https://github.com/badlogic/pi-mono/issues/688))
## [0.45.3] - 2026-01-13