[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-03-04 04:18:08 +00:00
parent 1eeb31065f
commit efc90bfb1b

View file

@ -295,8 +295,7 @@ class VLLMServer(APIServer):
# Only normalize BOS for tokenizer-encoded prompt text.
if (
from_prompt_text
and
len(prompt_tokens) >= 2
and len(prompt_tokens) >= 2
and prompt_tokens[0] == self.tokenizer.bos_token_id == prompt_tokens[1]
):
prompt_tokens = prompt_tokens[1:]