What's Changed
Bug Fixes
- fix(sglang): regression on logprob computation - Fixed a regression introduced in v0.2.0 where
logprob_start_len=0was
accidentally removed from the SGLang/generaterequest. This causedinput_token_logprobsto not be returned for tool result
tokens, resulting inNonevalues in the token trajectory.
Impact
This bug affected all token-in/token-out training workflows with tool-calling agents. Users would see:
TypeError: must be real number, not NoneType
when training frameworks (e.g., slime) attempted to create tensors from the logprobs.
Upgrade
pip install --upgrade strands-sglangv0.2.1 will be yanked
Full Changelog: v0.2.1...v0.2.2