[Refactor] Implement output type check in LLM (#34794)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-02-20 11:57:55 +08:00
committed by GitHub
parent 76df6072ff
commit ac900c89bb
2 changed files with 58 additions and 38 deletions

View File

@@ -199,10 +199,6 @@ class LLMEngine:
self.should_execute_dummy_batch = True
return aggregated_has_unfinished
@classmethod
def validate_outputs(cls, outputs, output_type):
return outputs
def get_supported_tasks(self) -> tuple[SupportedTask, ...]:
if not hasattr(self, "_supported_tasks"):
# Cache the result