-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix streaming in distributed group chat example #5336
base: main
Are you sure you want to change the base?
Fix streaming in distributed group chat example #5336
Conversation
2ee11d9
to
7ea6b02
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5336 +/- ##
=======================================
Coverage 76.02% 76.02%
=======================================
Files 157 157
Lines 9491 9491
=======================================
Hits 7216 7216
Misses 2275 2275
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
||
await publish_message_to_ui_and_backend( | ||
stream_output = self._model_client.create_stream( | ||
messages=[self._system_message] + self._chat_history, max_consecutive_empty_chunk_tolerance=3 |
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.
The max_consecutive_empty_chunk_tolerance
will need to be removed.
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.
Correct, as we are installing dependencies for the sample from PyPi, we have to options on when to remove it:
- Remove it now, keep this PR open until we release another autogenerated version which contains the new logic
- Merge this PR, be ok with deprecation warning after a new release, and remove it when we will remove other packages.
@ekzhu please advice
7ea6b02
to
ef4129c
Compare
Signed-off-by: Mohammad Mazraeh <[email protected]>
Signed-off-by: Mohammad Mazraeh <[email protected]>
ef4129c
to
2cfabaa
Compare
Why are these changes needed?
Recreates #4440 to support actual streaming in core_distributed-group-chat sample
Related issue number
Checks