You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: preserve tool-call context in tokenization (#527)
* fix: preserve tool-call context in tokenization
Only splice trainable assistant spans and keep tool_calls
in the template; error if tool_calls would be dropped.
* Fix type errors in tool-call tokenization
- Use .get() instead of direct [] access for tool_calls to handle
message types that don't have this key
- Cast message to dict[str, Any] when appending to token_template_messages
---------
Co-authored-by: Cursor Bot <bot@cursor.com>
0 commit comments