mirror of https://github.com/langgenius/dify.git
Fix: avoid duplicate response_chunk update in `convert_stream_simple_response` (#26965)
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
parent
6432898e7a
commit
8b61f5e9c4
|
|
@ -112,7 +112,7 @@ class CompletionAppGenerateResponseConverter(AppGenerateResponseConverter):
|
|||
metadata = {}
|
||||
sub_stream_response_dict["metadata"] = cls._get_simple_metadata(metadata)
|
||||
response_chunk.update(sub_stream_response_dict)
|
||||
if isinstance(sub_stream_response, ErrorStreamResponse):
|
||||
elif isinstance(sub_stream_response, ErrorStreamResponse):
|
||||
data = cls._error_to_stream_response(sub_stream_response.err)
|
||||
response_chunk.update(data)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue