2026-01-08 23:05:44 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
|
from typing import (
|
|
|
|
|
ClassVar,
|
|
|
|
|
Protocol,
|
|
|
|
|
runtime_checkable,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@runtime_checkable
|
|
|
|
|
class SupportImageInput(Protocol):
|
|
|
|
|
support_image_input: ClassVar[bool] = True
|
2026-01-29 15:18:19 +08:00
|
|
|
color_format: ClassVar[str] = "RGB" # Default color format
|
2026-01-24 17:27:58 +08:00
|
|
|
|
|
|
|
|
|
2026-03-13 21:53:06 +08:00
|
|
|
@runtime_checkable
|
|
|
|
|
class SupportAudioInput(Protocol):
|
|
|
|
|
support_audio_input: ClassVar[bool] = True
|
|
|
|
|
|
|
|
|
|
|
2026-01-24 17:27:58 +08:00
|
|
|
@runtime_checkable
|
|
|
|
|
class SupportAudioOutput(Protocol):
|
|
|
|
|
support_audio_output: ClassVar[bool] = True
|