Fix: video parser should follow selected VLM in pipeline (#10900)

### What problem does this PR solve?

Video parser should follow selected VLM, rather than default one.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Yongteng Lei
2025-10-30 17:59:50 +08:00
committed by GitHub
parent bb9504d1cc
commit 5f65c7f48e

View File

@ -431,7 +431,7 @@ class Parser(ProcessBase):
conf = self._param.setups["video"] conf = self._param.setups["video"]
self.set_output("output_format", conf["output_format"]) self.set_output("output_format", conf["output_format"])
cv_mdl = LLMBundle(self._canvas.get_tenant_id(), LLMType.IMAGE2TEXT) cv_mdl = LLMBundle(self._canvas.get_tenant_id(), LLMType.IMAGE2TEXT, llm_name=conf["llm_id"])
txt = cv_mdl.chat(system="", history=[], gen_conf={}, video_bytes=blob, filename=name) txt = cv_mdl.chat(system="", history=[], gen_conf={}, video_bytes=blob, filename=name)
self.set_output("text", txt) self.set_output("text", txt)