-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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 70.16% 75.60% +5.44%
==========================================
Files 262 189 -73
Lines 14712 12734 -1978
Branches 243 0 -243
==========================================
- Hits 10322 9627 -695
+ Misses 4200 3107 -1093
+ Partials 190 0 -190
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
||
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 <mazraeh.mohammad@gmail.com>
Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
ef4129c
to
2cfabaa
Compare
@MohMaz Are you able to update this so we can merge once CI is passing? |
Why are these changes needed?
Recreates #4440 to support actual streaming in core_distributed-group-chat sample
Related issue number
Checks