-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
How to hook into the Text Stream #419
Comments
I got elevenlabs to play the final output :) |
@MrJarnould I've marked it as bug since this text should be treated as first class citizen Got any suggestions ? EDIT: I would have prefered choosing a "question" tag, even tried a blank non-templated issue, and tried removing the bug tag.. |
"a missing piece" also known as a "feature"? First-class citizen notwithstanding, things can only be a bug if they were a feature first right? Or in another way, things have to exist before they can be broken. |
Hey there, @fire17! There are some docs about how to programmatically handle streaming responses from Open Interpreter. |
Going to close this for now due to the requested functionality being documented now. Feel free to reopen if there’s still an Issue. |
Hi there,
I cant believe I'm the first to ask this.....
but how can we hook into the text stream?
I'm building a UI for open-interpreter,
and I want to display the text stream in my UI, how do i access the text before it is printed?
Also I wish to send it to Elevenlabs Text2Voice (which supports streaming now)
Any help getting the live text will be helpfull
Thanks a lot and all the best!
Reproduce
interpreter.chat(user_msg, text_stream_hook=myFunc)
Expected behavior
Text stream should be sent to myFunc
Screenshots
No response
Open Interpreter version
0.1.4
Python version
3.11.5
Operating System name and version
Windows 10
Additional context
I would love the hook to exist, but i'll also take where i need to intercept in the code as an answer for now... since i can continue from there...
The text was updated successfully, but these errors were encountered: