From ecc550d91123a756f38ecc7a718f13be799a1ca9 Mon Sep 17 00:00:00 2001 From: agungbesti Date: Tue, 15 Sep 2026 05:17:43 +0700 Subject: [PATCH] test(byteplus): remove redundant internal SDK patch to fix TQ008 --- .../test_byteplus_chat_transformation.py | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/tests/test_litellm/llms/byteplus/test_byteplus_chat_transformation.py b/tests/test_litellm/llms/byteplus/test_byteplus_chat_transformation.py index f91628f6467..038956cac58 100644 --- a/tests/test_litellm/llms/byteplus/test_byteplus_chat_transformation.py +++ b/tests/test_litellm/llms/byteplus/test_byteplus_chat_transformation.py @@ -106,31 +106,3 @@ class TestBytePlusChatConfig: ) mock_create.assert_called_once() assert res.choices[0].message.content == "Hello from BytePlus!" - - def test_litellm_completion_byteplus_make_request(self): - from unittest.mock import patch - from litellm import completion - from litellm.types.utils import Choices, Message, ModelResponse - - model_response = ModelResponse( - id="chatcmpl-123", - choices=[ - Choices( - finish_reason="stop", - index=0, - message=Message(content="Hello from BytePlus!", role="assistant"), - ) - ], - model="byteplus/seed-2-0-lite", - ) - - with patch( - "litellm.llms.openai.openai.OpenAIChatCompletion.make_sync_openai_chat_completion_request", - return_value=({}, model_response), - ): - res = completion( - model="byteplus/seed-2-0-lite", - messages=[{"role": "user", "content": "hello"}], - api_key="test-api-key", - ) - assert res.choices[0].message.content == "Hello from BytePlus!"