Skip to content

Commit

Permalink
fix: stream yeild problem
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu007 committed Aug 18, 2024
1 parent 9195094 commit e8c30fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/codeinterpreterapi/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,10 @@ def generate_response_stream(
output = chunk["output"]
else:
output = str(chunk)
yield output
full_output += output

print("generate_response_stream brain.stream full_output=", full_output)
self._aoutput_handler(full_output)
yield self._output_handler(full_output)
except Exception as e:
if self.verbose:
traceback.print_exc()
Expand Down

0 comments on commit e8c30fb

Please sign in to comment.