diff --git a/environments/tool_call_parsers/deepseek_v3_parser.py b/environments/tool_call_parsers/deepseek_v3_parser.py index 5356b1a67..2d24ed330 100644 --- a/environments/tool_call_parsers/deepseek_v3_parser.py +++ b/environments/tool_call_parsers/deepseek_v3_parser.py @@ -38,7 +38,8 @@ class DeepSeekV3ToolCallParser(ToolCallParser): # Regex captures: type, function_name, function_arguments PATTERN = re.compile( - r"<|tool▁call▁begin|>(?P.*)<|tool▁sep|>(?P.*)\n```json\n(?P.*)\n```<|tool▁call▁end|>" + r"<|tool▁call▁begin|>(?P.*)<|tool▁sep|>(?P.*)\n```json\n(?P.*)\n```<|tool▁call▁end|>", + re.DOTALL, ) def parse(self, text: str) -> ParseResult: