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

fix: handle coroutine check for on_disconnect callback in chat API #3930

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This pull request fixes an issue in the chat API where the on_disconnect callback was not properly handled when it returned a coroutine. The code now checks if the callback is a coroutine and awaits it if necessary.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Sep 26, 2024
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Sep 26, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 26, 2024
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) September 26, 2024 13:18
@ogabrielluiz ogabrielluiz merged commit 56d8b0f into main Sep 26, 2024
42 of 44 checks passed
@ogabrielluiz ogabrielluiz deleted the fix/ondisconnect branch September 26, 2024 13:28
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
…angflow-ai#3930)

Handle coroutine check for on_disconnect callback in chat API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants