[diffusion] feat: add performance mode server args (#24491)
This commit is contained in:
@@ -119,9 +119,12 @@ class ServingChatTestCase(unittest.TestCase):
|
||||
|
||||
# ------------- conversion tests -------------
|
||||
def test_convert_to_internal_request_single(self):
|
||||
with patch(
|
||||
"sglang.srt.entrypoints.openai.serving_chat.generate_chat_conv"
|
||||
) as conv_mock, patch.object(self.chat, "_process_messages") as proc_mock:
|
||||
with (
|
||||
patch(
|
||||
"sglang.srt.entrypoints.openai.serving_chat.generate_chat_conv"
|
||||
) as conv_mock,
|
||||
patch.object(self.chat, "_process_messages") as proc_mock,
|
||||
):
|
||||
conv_ins = Mock()
|
||||
conv_ins.get_prompt.return_value = "Test prompt"
|
||||
conv_ins.image_data = conv_ins.audio_data = None
|
||||
|
||||
Reference in New Issue
Block a user