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

run_async's response_stream is a generator and not an async generator #67 #68

Merged
merged 2 commits into from
Feb 2, 2025

Conversation

jonchun
Copy link
Contributor

@jonchun jonchun commented Jan 27, 2025

Fix for #67

@jonchun
Copy link
Contributor Author

jonchun commented Jan 27, 2025

Looks like I maybe broke something -- don't have time now to troubleshoot whether it's my proposal that's incorrect or if the test is faulty (perhaps related to a change in the implementation since stream_response_async is deprecated? I haven't looked at the previous implementation) but more details are in #67.

@KennyVaneetvelde
Copy link
Member

Indeed some failing tests, no worries!

@KennyVaneetvelde
Copy link
Member

@jonchun Hi, could you perhaps update the tests

@jonchun
Copy link
Contributor Author

jonchun commented Feb 1, 2025

Taking a look

@jonchun
Copy link
Contributor Author

jonchun commented Feb 1, 2025

Fix was trivial although a bit tricky because pytest didn't give me line numbers... issue was the mock function that was defined for streaming partials was async but needed to be sync because the generator was updated to be synchronous in the original PR

@KennyVaneetvelde KennyVaneetvelde merged commit c4a7607 into BrainBlend-AI:main Feb 2, 2025
1 check passed
@jonchun jonchun deleted the patch-1 branch February 2, 2025 15:52
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