diff --git a/validator/scenario_check.py b/validator/scenario_check.py index 4df9b14..e3f70de 100644 --- a/validator/scenario_check.py +++ b/validator/scenario_check.py @@ -34,8 +34,8 @@ def _extract_expected_order(request: dict) -> Optional[List[str]]: @staticmethod def _get_visible_content(text: str) -> str: - """Strip ... blocks to get visible reply only.""" - return re.sub(r".*?", "", text, flags=re.DOTALL).strip() + """Strip / reasoning blocks to get visible reply only.""" + return re.sub(r"<(?:mm:)?think>.*?", "", text, flags=re.DOTALL).strip() @staticmethod def _extract_actual_order(text: str, expected: list[str]) -> list[str]: