From 7771d1de882f53863f04d609723b8c29646ee5da Mon Sep 17 00:00:00 2001 From: Thomas Parnell Date: Fri, 20 Jun 2025 13:16:48 +0200 Subject: [PATCH] [Fix] import regex instead of re (#19875) Signed-off-by: Thomas Parnell --- vllm/entrypoints/openai/tool_parsers/xlam_tool_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vllm/entrypoints/openai/tool_parsers/xlam_tool_parser.py b/vllm/entrypoints/openai/tool_parsers/xlam_tool_parser.py index 742e7bfdb3aa..6dd8336e52de 100644 --- a/vllm/entrypoints/openai/tool_parsers/xlam_tool_parser.py +++ b/vllm/entrypoints/openai/tool_parsers/xlam_tool_parser.py @@ -1,10 +1,11 @@ # SPDX-License-Identifier: Apache-2.0 # ruff: noqa import json -import re from collections.abc import Sequence from typing import Any, Dict, List, Optional, Union +import regex as re + from vllm.entrypoints.openai.protocol import (ChatCompletionRequest, DeltaFunctionCall, DeltaMessage, DeltaToolCall,