Replies: 1 comment
-
@slundberg I encountered the same problem, in Stream mode, the executor exited directly without await. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, right now it seems that we can either use
stream=True
or theawait
command but not both together (I am on version 0.0.61).The specific error when trying to pause execution and then resume a partially executed guidance program (with streaming enabled) is: 'generator' object is not callable error message. This is understandable as enabling the stream return a generator via a yield.
In fact, the current example in the readme that uses
stream=True
andawait
doesn't work for me:https://github.com/microsoft/guidance#pausing-execution-with-await. I get the above error message.
If I set
stream=False
though then it works fine. Perhaps I am making a simple mistake somewhere (I hope!); but if I am not, are there any recommendations for making streaming and await working together nicely?PS. thanks for a great project!
Beta Was this translation helpful? Give feedback.
All reactions