Fix non stream case (#1115)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Sihan Chen
2024-11-11 14:18:42 +08:00
committed by GitHub
parent a7353bbaa4
commit abd9d12937

View File

@@ -148,6 +148,8 @@ def align_outputs(self, data, cur_node, inputs, runtime_graph, llm_parameters_di
next_data["inputs"] = prompt
elif self.services[cur_node].service_type == ServiceType.LLM and not llm_parameters_dict["streaming"]:
next_data["text"] = data["choices"][0]["message"]["content"]
else:
next_data = data