[Misc] mv chat_utils.py to renderers. (#60522)

Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io>
This commit is contained in:
wang.yuqi
2026-10-10 06:50:34 +00:00
committed by GitHub
parent 699c892dd5
commit c1692c85f1
101 changed files with 185 additions and 187 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ from .params import ChatParams, TokenizeParams
if TYPE_CHECKING:
from vllm.config import VllmConfig
from vllm.entrypoints.chat_utils import (
from vllm.renderers.chat_utils import (
ChatCompletionMessageParam,
ConversationMessage,
)
@@ -362,7 +362,7 @@ class BaseRenderer(ABC, Generic[_T]):
no-op if the background warmup — or a prior reset_mm_cache that joined
it — already ran it.
"""
from vllm.entrypoints.chat_utils import ChatTemplateResolutionError
from vllm.renderers.chat_utils import ChatTemplateResolutionError
# prevent MM processor hangs
with set_default_torch_num_threads(1):