[Frontend] Avoid list copies in serving_chat.py (#22947)

Signed-off-by: Nick Hill <nhill@redhat.com>
This commit is contained in:
Nick Hill
2025-08-16 02:06:30 +00:00
committed by GitHub
parent fbd88728b3
commit f6b5040590
2 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ class ReasoningParser:
return self.model_tokenizer.get_vocab()
@abstractmethod
def is_reasoning_end(self, input_ids: Sequence[int]) -> bool:
def is_reasoning_end(self, input_ids: list[int]) -> bool:
"""
Check if the reasoning content ends in the input_ids.