Revert "fix: fix video input for qwen3-vl" (#11437)
This commit is contained in:
@@ -50,27 +50,6 @@ class TestQwen2VLServer(ImageOpenAITestMixin, VideoOpenAITestMixin):
|
||||
cls.base_url += "/v1"
|
||||
|
||||
|
||||
class TestQwen3VLServer(ImageOpenAITestMixin, VideoOpenAITestMixin):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.model = "Qwen/Qwen3-VL-30B-A3B-Instruct"
|
||||
cls.base_url = DEFAULT_URL_FOR_TEST
|
||||
cls.api_key = "sk-123456"
|
||||
cls.process = popen_launch_server(
|
||||
cls.model,
|
||||
cls.base_url,
|
||||
timeout=DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
api_key=cls.api_key,
|
||||
other_args=[
|
||||
"--mem-fraction-static",
|
||||
"0.80",
|
||||
"--cuda-graph-max-bs",
|
||||
"4",
|
||||
],
|
||||
)
|
||||
cls.base_url += "/v1"
|
||||
|
||||
|
||||
class TestQwen2_5_VLServer(ImageOpenAITestMixin, VideoOpenAITestMixin):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
|
||||
@@ -494,7 +494,7 @@ class VideoOpenAITestMixin(TestOpenAIOmniServerBase):
|
||||
**(self.get_vision_request_kwargs()),
|
||||
)
|
||||
|
||||
video_response = response.choices[0].message.content.lower()
|
||||
video_response = response.choices[0].message.content
|
||||
|
||||
print("-" * 30)
|
||||
print(f"Video response:\n{video_response}")
|
||||
@@ -502,10 +502,9 @@ class VideoOpenAITestMixin(TestOpenAIOmniServerBase):
|
||||
|
||||
# Add assertions to validate the video response
|
||||
assert (
|
||||
"ipod" in video_response
|
||||
"iPod" in video_response
|
||||
or "device" in video_response
|
||||
or "microphone" in video_response
|
||||
or "phone" in video_response
|
||||
), f"video_response: {video_response}, should contain 'iPod' or 'device'"
|
||||
assert (
|
||||
"man" in video_response
|
||||
|
||||
Reference in New Issue
Block a user