[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
71cf01b171
commit
585d7bdc94
1 changed files with 2 additions and 1 deletions
|
|
@ -330,7 +330,8 @@ class SlidingWindowCompact(CompactStrategy):
|
|||
# Keep the message (multimodal content stays) but strip
|
||||
# tool_calls entries with no surviving tool follow-up.
|
||||
kept_tcs = [
|
||||
tc for tc in (m.get("tool_calls") or [])
|
||||
tc
|
||||
for tc in (m.get("tool_calls") or [])
|
||||
if isinstance(tc, dict)
|
||||
and isinstance(tc.get("id"), str)
|
||||
and tc["id"] in responded_ids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue