From 37c04c2245d0f9011ee8c4035eee84c6c6716bae Mon Sep 17 00:00:00 2001 From: Xinyuan Tong <115166877+JustinTong0323@users.noreply.github.com> Date: Sat, 24 Jan 2026 18:31:01 -0500 Subject: [PATCH] fix: Refactor register_image_processor to use kwarg instead of positional arg (#17685) Signed-off-by: Xinyuan Tong --- python/sglang/srt/configs/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/sglang/srt/configs/utils.py b/python/sglang/srt/configs/utils.py index 8403d95da..16575dfe8 100644 --- a/python/sglang/srt/configs/utils.py +++ b/python/sglang/srt/configs/utils.py @@ -15,7 +15,9 @@ def register_image_processor( """ register customized hf image processor while removing hf impl """ - AutoImageProcessor.register(config, None, image_processor, None, exist_ok=True) + AutoImageProcessor.register( + config, slow_image_processor_class=image_processor, exist_ok=True + ) def register_processor(config: Type[PretrainedConfig], processor: Type[ProcessorMixin]):