-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: updated ChatOutput component not working with streaming enabled #6747
fix: updated ChatOutput component not working with streaming enabled #6747
Conversation
…angflow-ai#6744) fixes: 69df913 Updated to handle the forgotten Generator case for self.input_value (encountered when streaming is enabled). Overhauled the chat.py under outputs to (mostly) pass strict type checking, something which could have prevented this bug. Only this file has been changed. The only type errors in this file are in the safe_convert function and are due to problems in other files. To prevent further problems in the future, the project should work towards enabling strict type checking permanently after fixing the vast number of type problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Thanks for the PR
Can we handle this without changing the previous function names?
Cause we have a follow up PR from @lucaseduoli for formatting.
@lucaseduoli we might need to update the templates after this PR! |
Changes Made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
CodSpeed Performance ReportMerging #6747 will degrade performances by 27.6%Comparing Summary
Benchmarks breakdown
|
…angflow-ai#6747) * fix: updated ChatOutput component not working with streaming enabled (langflow-ai#6744) fixes: 69df913 Updated to handle the forgotten Generator case for self.input_value (encountered when streaming is enabled). Overhauled the chat.py under outputs to (mostly) pass strict type checking, something which could have prevented this bug. Only this file has been changed. The only type errors in this file are in the safe_convert function and are due to problems in other files. To prevent further problems in the future, the project should work towards enabling strict type checking permanently after fixing the vast number of type problems. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * update templates and make sure they support streaming without making breaking chnages * update templates * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
fix: updated ChatOutput component not working with streaming enabled (#6744)
fixes: 69df913
Updated to handle the forgotten Generator case for self.input_value (encountered when streaming is enabled).
Overhauled the chat.py under outputs to (mostly) pass strict type checking, something which could have prevented this bug.
Only this file has been changed. The only type errors in this file are in the safe_convert function and are due to problems in other files.
To prevent further problems in the future, the project should work towards enabling strict type checking permanently after fixing the vast number of type problems.