Skip to content

Commit

Permalink
Fix non stream case (opea-project#1115)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Spycsh and pre-commit-ci[bot] authored Nov 11, 2024
1 parent a7353bb commit abd9d12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChatQnA/chatqna.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit abd9d12

Please sign in to comment.