From a590abfc66e7ffb9ee1ad3c1ca9c5a6c518dafc2 Mon Sep 17 00:00:00 2001 From: jibanez-staticduo Date: Wed, 16 Sep 2026 08:14:16 +0200 Subject: [PATCH] test: annotate reasoning history test parameters --- .../chat/test_hosted_vllm_chat_transformation.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/test_litellm/llms/hosted_vllm/chat/test_hosted_vllm_chat_transformation.py b/tests/test_litellm/llms/hosted_vllm/chat/test_hosted_vllm_chat_transformation.py index c133f23487c..fc20ca90faa 100644 --- a/tests/test_litellm/llms/hosted_vllm/chat/test_hosted_vllm_chat_transformation.py +++ b/tests/test_litellm/llms/hosted_vllm/chat/test_hosted_vllm_chat_transformation.py @@ -20,7 +20,9 @@ from litellm.llms.hosted_vllm.chat.transformation import HostedVLLMChatConfig @pytest.mark.parametrize("params", [{}, {"forward_reasoning_content": False}, {"forward_reasoning_content": True}]) @pytest.mark.parametrize("is_async", [False, True]) @pytest.mark.asyncio -async def test_forward_reasoning_content_preserves_only_explicit_history(params, is_async): +async def test_forward_reasoning_content_preserves_only_explicit_history( + params: dict[str, bool], is_async: bool +) -> None: config = HostedVLLMChatConfig() messages = [ {"role": "user", "content": "Check the counter"}, @@ -672,8 +674,14 @@ async def test_reasoning_field_does_not_apply_to_inherited_provider(provider: st @pytest.mark.parametrize("field", ["reasonig", ""]) @pytest.mark.parametrize("forward", [False, True]) async def test_invalid_reasoning_field_fails_before_http( - provider, is_async, via_router, bridge, field, forward, monkeypatch -): + provider: str, + is_async: bool, + via_router: bool, + bridge: bool, + field: str, + forward: bool, + monkeypatch: pytest.MonkeyPatch, +) -> None: monkeypatch.setattr(litellm, "disable_aiohttp_transport", True) messages = [{"role": "user", "content": "Hello"}] original = deepcopy(messages)