-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Update distributed group chat example to use streaming API calls as well #4440
base: main
Are you sure you want to change the base?
Update distributed group chat example to use streaming API calls as well #4440
Conversation
Signed-off-by: Mohammad Mazraeh <[email protected]>
Signed-off-by: Mohammad Mazraeh <[email protected]>
@@ -573,7 +573,6 @@ async def create_stream( | |||
json_output: Optional[bool] = None, | |||
extra_create_args: Mapping[str, Any] = {}, | |||
cancellation_token: Optional[CancellationToken] = None, | |||
*, |
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.
@jackgerrits do we need this here? Can I possibly be breaking anything by removing it?
I have added the max_consecutive_empty_chunk_tolerance
to the ChatCompletionClient
and it's implementations and had to remove this * as it was raising type check errors (in theory non named parameters, the *, should be after the named parameters, but I was getting pyright and mypy errors for it complaining about number of arguments in the overriden methods ...
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.
I think we might need to put the * before tools
, both in the interface and the implementations. @jackgerrits
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.
This should be a separate PR.
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.
all extra params should come after the *
to avoid too many positional params
@ekzhu can you please review when you got a chance? |
@victordibia FYI |
@MohMaz @jackgerrits this PR is a bit stall. Shall we first fix the |
Why are these changes needed?
Making distributed group chat example include a streaming API integration with the UI
Related issue number
Checks