-
Notifications
You must be signed in to change notification settings - Fork 31
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
streaming is not working #29
Comments
I believe the problem is with the python aspect of this. I think one of two things would fix this: Add Or Add |
First of all, thank you for this incredible project. If it's not currently a high priority for you, I'm willing to delve deeper into the issue myself. It would be immensely helpful if you could provide me with some guidance or pointers. |
I think one of the key issues is it's filling a buffer, not greedily outputting anytime it sees a newline, which could help here |
This is where it's yielded to stdout plock/src-tauri/src/generator.rs Line 105 in 210e3e2
Any help would be much appreciated! |
This is actually blocked by error handling. We should definitely use
The above code snippet will block the current thread. When the script finishes, it might emit an empty event, which will trigger the loop again, I've change the code like this:
Another modification is that the
|
If / when you get things to a state you believe they are working properly, please do open a pr. I will gladly review / test. I believe some bugs were introduced into 0.13 (as you point out with error handling), and the streaming was originally built for LLM streaming, which it appeared to work properly for in 0.12. But I definitely agree that it should behave how the terminal would for newlines as well. As far as the delta output - i believe that was to play well with input simulation. I regret not adding more documentation. |
I have set up a command like this:
the greet.sh is:
the greet.py is:
When I invoke this shortcut (Ctrl+Cmd+G), it waits for 10 seconds before it can return the result. How can I make it respond as soon as the text is printed?
The text was updated successfully, but these errors were encountered: