[Bugfix]: Fix merging updated additional information to ensure dict type (#1296)

Signed-off-by: Shijin Zhang <75300765+Dovis01@users.noreply.github.com>
This commit is contained in:
SHIJIN ZHANG authored and GitHub committed 2026-02-26 00:06:49 +08:00
1 parent 43939df2a5
commit 466a7f7a62
1 file changed
+2 -1
+2 -1
View File
@@ -927,7 +927,8 @@ class OmniGPUModelRunner(GPUModelRunner):
def _update_additional_information(self, scheduler_output: "SchedulerOutput") -> None:
for new_req in scheduler_output.scheduled_new_reqs:
payload_info = getattr(new_req, "additional_information", None)
self._merge_additional_information_update(new_req.req_id, payload_info)
if isinstance(payload_info, dict):
self._merge_additional_information_update(new_req.req_id, payload_info)
if hasattr(scheduler_output.scheduled_cached_reqs, "additional_information"):
cached_infos = getattr(scheduler_output.scheduled_cached_reqs, "additional_information", {})