[Bugfix] GLM-Image: route t2i requests through the multimodal processor (#3034) (#3189)

Signed-off-by: Piotr Tarasiewicz <ptarasiewicz@nvidia.com>
This commit is contained in:
ptarasiewiczNV authored and GitHub committed 2026-05-04 21:07:53 +08:00
1 parent bb69cbc9f1
commit 9a53703676
3 files changed
+47 -4

No files matched your search

+5 -1
View File
@@ -60,7 +60,11 @@ class OmniInputPreprocessor(InputPreprocessor):
additional_information = parsed_content.get("additional_information")
if additional_information is not None:
inputs["additional_information"] = additional_information
elif mm_processor_kwargs:
elif "mm_processor_kwargs" in parsed_content:
# Presence — not truthiness. An explicitly-set empty dict still
# signals "route through the multimodal processor" (needed for
# AR-based image-gen where the HF processor supplies its own
# defaults and scaffold).
inputs = self._process_multimodal(
prompt_text,
{},