[Chore]: Stream tokens vs characters in tool call parser tests (#26513)

Signed-off-by: Ben Browning <bbrownin@redhat.com>
This commit is contained in:
Ben Browning
2025-10-27 11:06:25 -04:00
committed by GitHub
parent 23ad820553
commit 3b96f85c36
6 changed files with 80 additions and 41 deletions

View File

@@ -0,0 +1,12 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import pytest
from transformers import AutoTokenizer
from vllm.transformers_utils.tokenizer import AnyTokenizer
@pytest.fixture(scope="function")
def default_tokenizer() -> AnyTokenizer:
return AutoTokenizer.from_pretrained("gpt2")