From a708ef59443377aeda2d8ece804fa1e916881577 Mon Sep 17 00:00:00 2001 From: cjackal <44624812+cjackal@users.noreply.github.com> Date: Thu, 5 Mar 2026 19:55:31 +0900 Subject: [PATCH] [Misc] Fix SyntaxWarning - invalid escape sequence '\e' (#36020) Signed-off-by: cjackal <44624812+cjackal@users.noreply.github.com> --- vllm/entrypoints/openai/chat_completion/protocol.py | 2 +- vllm/entrypoints/openai/completion/protocol.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vllm/entrypoints/openai/chat_completion/protocol.py b/vllm/entrypoints/openai/chat_completion/protocol.py index 0abe85ae8..ece69289b 100644 --- a/vllm/entrypoints/openai/chat_completion/protocol.py +++ b/vllm/entrypoints/openai/chat_completion/protocol.py @@ -343,7 +343,7 @@ class ChatCompletionRequest(OpenAIBaseModel): "in output tokens. If such repetition is detected, generation will " "be ended early. LLMs can sometimes generate repetitive, unhelpful " "token patterns, stopping only when they hit the maximum output length " - "(e.g. 'abcdabcdabcd...' or '\emoji \emoji \emoji ...'). This feature " + "(e.g. 'abcdabcdabcd...' or '\\emoji \\emoji \\emoji ...'). This feature " "can detect such behavior and terminate early, saving time and tokens.", ) diff --git a/vllm/entrypoints/openai/completion/protocol.py b/vllm/entrypoints/openai/completion/protocol.py index af132049c..73232ec3a 100644 --- a/vllm/entrypoints/openai/completion/protocol.py +++ b/vllm/entrypoints/openai/completion/protocol.py @@ -173,7 +173,7 @@ class CompletionRequest(OpenAIBaseModel): "in output tokens. If such repetition is detected, generation will " "be ended early. LLMs can sometimes generate repetitive, unhelpful " "token patterns, stopping only when they hit the maximum output length " - "(e.g. 'abcdabcdabcd...' or '\emoji \emoji \emoji ...'). This feature " + "(e.g. 'abcdabcdabcd...' or '\\emoji \\emoji \\emoji ...'). This feature " "can detect such behavior and terminate early, saving time and tokens.", )