Repository navigation
0.5.0 - keep a usable output budget and accept any 0.x core
0.5.0
Fixed
-
A long session no longer collapses the output budget to one token. A replayed history carries no usage, so pi-ai estimates the whole transcript by symbols; past roughly a million estimated tokens that estimate dwarfs the context window and its clamp returns 1. The gateway then received
max_tokens: 1, the compressing middleware in front of it restored the budget to 128000-256000, and the model produced a huge answer until max-tokens — the "loop" seen in long sessions. The transport now raises any max-token field below 4096 inonPayload, capped by the model's own ceiling, and shows an Output budget restored entry in the diagnostics panel when it does. -
PI_AI_ERRORis retried. pi-ai maps anything that is neither a status, a network failure nor a stream cutoff to that code; a gateway answering 502/503 with a plain body now gets the same retries asSERVER.
Changed
- A core update keeps the plugin enabled.
engines.dshis now>=0.2.2-rc.3 <1.0.0. A caret range on a prerelease stops at the next minor, so a core bump from 0.2.x to 0.3.x disabled the plugin even though nothing it needs had changed. Only a 1.0 core, where a breaking change is actually allowed, can now require a new plugin build. - Core packages moved to 0.2.2-rc.3, the newest published core line.
Verification
100 tests pass. The clamp is reproduced through the real adapter and transport with a 1000-token context window, and the shipped manifest was run through the real evaluatePluginCompatibility from dsh-app-boot 0.2.2-rc.3: enabled on 0.2.2-rc.3 through 0.9.9, disabled only on 1.0.0.