From eedd472025c4f3d0247c5ef4f05dce54663a09c9 Mon Sep 17 00:00:00 2001 From: Xiaoyu Zhang <35585791+BBuf@users.noreply.github.com> Date: Tue, 3 Feb 2026 12:17:16 +0800 Subject: [PATCH] [Diffusion] fix serving image_edit get input image bug (#18109) --- .../multimodal_gen/runtime/pipelines/diffusers_pipeline.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/sglang/multimodal_gen/runtime/pipelines/diffusers_pipeline.py b/python/sglang/multimodal_gen/runtime/pipelines/diffusers_pipeline.py index bb01bfef9..baa61562b 100644 --- a/python/sglang/multimodal_gen/runtime/pipelines/diffusers_pipeline.py +++ b/python/sglang/multimodal_gen/runtime/pipelines/diffusers_pipeline.py @@ -333,6 +333,9 @@ class DiffusersExecutionStage(PipelineStage): if not batch.image_path: return None + if isinstance(batch.image_path, list): + batch.image_path = batch.image_path[0] + try: if batch.image_path.startswith(("http://", "https://")): response = requests.get(batch.image_path, timeout=30)