[Misc] Refactor static stage metadata lookups (#7602)

Signed-off-by: Nick Cao <ncao@redhat.com>
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Nick CaoandCodex authored and GitHub committed 2026-09-21 18:34:50 -07:00
1 parent 1586c41ae4
commit 1d3dc8bf83
5 files changed
+41 -18

No files matched your search

+1 -1
View File
@@ -422,7 +422,7 @@ class OmniEngineBase:
for client in self.stage_clients
]
supported_tasks: set[str] = set()
if any(getattr(client, "is_comprehension", False) for client in self.stage_clients):
if any(getattr(stage_config, "is_comprehension", False) for stage_config in self.stage_configs):
supported_tasks.add("generate")
if any(meta.final_output_type == "audio" for meta in self.stage_metadata):
supported_tasks.add("speech")