Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions validator/scenario_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def _extract_expected_order(request: dict) -> Optional[List[str]]:

@staticmethod
def _get_visible_content(text: str) -> str:
"""Strip <think>...</think> blocks to get visible reply only."""
return re.sub(r"<think>.*?</think>", "", text, flags=re.DOTALL).strip()
"""Strip <think>/<mm:think> reasoning blocks to get visible reply only."""
return re.sub(r"<(?:mm:)?think>.*?</(?:mm:)?think>", "", text, flags=re.DOTALL).strip()

@staticmethod
def _extract_actual_order(text: str, expected: list[str]) -> list[str]:
Expand Down