Skip to content

Commit

Permalink
Fix LVM streaming issue (opea-project#637)
Browse files Browse the repository at this point in the history
* Fix LVM streaming issue

Signed-off-by: lvliang-intel <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: lvliang-intel <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
lvliang-intel and pre-commit-ci[bot] authored Sep 8, 2024
1 parent 7e1a2e5 commit fb4b8d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion comps/cores/mega/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ async def execute(
# send the cur_node request/reply
endpoint = self.services[cur_node].endpoint_path
llm_parameters_dict = llm_parameters.dict()
if self.services[cur_node].service_type == ServiceType.LLM:
if (
self.services[cur_node].service_type == ServiceType.LLM
or self.services[cur_node].service_type == ServiceType.LVM
):
for field, value in llm_parameters_dict.items():
if inputs.get(field) != value:
inputs[field] = value
Expand Down

0 comments on commit fb4b8d2

Please sign in to comment.