[CI] Ignore ruff D209, rejoin the docstrings it split, and silence incompatible-rule warnings (#57212)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1085b64425
commit
651a88c09a
@@ -114,8 +114,7 @@ class Lfm2ToolParser(ToolParser):
|
||||
"""Drop any orphan <|tool_call_end|> (and the preceding text) from
|
||||
trailing content. LFM2 occasionally echoes the call body after the
|
||||
first end token and caps it with a second end token; everything
|
||||
through the last such orphan is model garbage, not user content.
|
||||
"""
|
||||
through the last such orphan is model garbage, not user content."""
|
||||
last_orphan = raw_after.rfind(TOOL_CALL_END)
|
||||
if last_orphan != -1:
|
||||
return raw_after[last_orphan + len(TOOL_CALL_END) :]
|
||||
|
||||
Reference in New Issue
Block a user