Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MohMaz
Copy link
Contributor

@MohMaz MohMaz commented Dec 1, 2024

Why are these changes needed?

Making distributed group chat example include a streaming API integration with the UI

Related issue number

Checks

@MohMaz MohMaz self-assigned this Dec 1, 2024
Signed-off-by: Mohammad Mazraeh <[email protected]>
@MohMaz MohMaz marked this pull request as ready for review December 1, 2024 07:29
@@ -573,7 +573,6 @@ async def create_stream(
json_output: Optional[bool] = None,
extra_create_args: Mapping[str, Any] = {},
cancellation_token: Optional[CancellationToken] = None,
*,
Copy link
Contributor Author

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 ...

Copy link
Collaborator

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

Copy link
Collaborator

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.

@MohMaz MohMaz changed the title update to include create_stream Update distributed group chat example to use streaming API calls as well Dec 1, 2024
@MohMaz
Copy link
Contributor Author

MohMaz commented Dec 3, 2024

@ekzhu can you please review when you got a chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants