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
feat: pre-compute ISL token counts for multi-turn dataset-history mode
- Add _precompute_isl_for_multi_turn() in execute.py: runs
apply_chat_template(messages, tokenize=True, add_generation_prompt=True)
once per client turn at setup time and stores results in
sample["input_tokens"], hitting the IslTrigger sync fast path
(len(token_ids)) with zero hot-path cost.
- Add _extract_prompt_text() in session.py: refactors inline message
content extraction to handle list-form multimodal content safely,
fixing a crash when content is a list (e.g. vision/tool-call messages).
- Add unit tests for both helpers and two integration tests covering
target_concurrency cap enforcement and pipeline exception propagation.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments