A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 7, 05:15 UTC
[Misc] Fix SyntaxWarning - invalid escape sequence '\e' (#36020)
Signed-off-by: cjackal <44624812+cjackal@users.noreply.github.com>
cjackal committed
Mar 5, 2026 at 19:55 UTC
a708ef59443377aeda2d8ece804fa1e916881577
2 files changed
+2
-2
vllm/entrypoints/openai/chat_completion/protocol.py
+1
-1
@@ -343,7 +343,7 @@ class ChatCompletionRequest(OpenAIBaseModel):
343
"in output tokens. If such repetition is detected, generation will "
344
"be ended early. LLMs can sometimes generate repetitive, unhelpful "
345
"token patterns, stopping only when they hit the maximum output length "
346
- "(e.g. 'abcdabcdabcd...' or '\emoji \emoji \emoji ...'). This feature "
346
+ "(e.g. 'abcdabcdabcd...' or '\\emoji \\emoji \\emoji ...'). This feature "
347
"can detect such behavior and terminate early, saving time and tokens.",
348
)
349
vllm/entrypoints/openai/completion/protocol.py
+1
-1
@@ -173,7 +173,7 @@ class CompletionRequest(OpenAIBaseModel):
173
"in output tokens. If such repetition is detected, generation will "
174
"be ended early. LLMs can sometimes generate repetitive, unhelpful "
175
"token patterns, stopping only when they hit the maximum output length "
176
- "(e.g. 'abcdabcdabcd...' or '\emoji \emoji \emoji ...'). This feature "
176
+ "(e.g. 'abcdabcdabcd...' or '\\emoji \\emoji \\emoji ...'). This feature "
177
"can detect such behavior and terminate early, saving time and tokens.",
178
)
179