[Bugfix][Frontend] Remove async-chunk guard from realtime API (#5383)

Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
Sy03 authored and GitHub committed 2026-07-25 09:20:47 +08:00
1 parent d6240742f3
commit e043818abf
8 files changed
+133 -29

No files matched your search

+5 -1
View File
@@ -1183,7 +1183,11 @@ class Orchestrator:
return
request_finished = False
if finished and self.stage_pools[stage_id].final_output:
if (
finished
and self.stage_pools[stage_id].final_output
and not (req_state.streaming.enabled and req_state.streaming.segment_finished)
):
req_state.finished_final_output_stage_ids.add(stage_id)
final_output_stage_ids = req_state.final_output_stage_ids or {req_state.final_stage_id}
request_finished = final_output_stage_ids.issubset(req_state.finished_final_output_stage_ids)