-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Role blocks fail silently inside of stateless grammars #916
Comments
Same with the |
wow great catch, had no idea these were failing! |
@nking-1 and I were deep in the trenches yesterday 😂 |
@hudson-ai do you remember where the root cause of the bug was? Is it in |
It's sort of inherent to the implementation of context blocks. Opening/closing them just adds/removes something from a class-level dict on Model that affects the The problem is that we never hit that A workaround may be to send an instance of a "fake" Model subclass through rather than the empty string, but I think it may honestly be worth taking this opportunity to rethink the context managers a bit. |
See also: #786 (comment) |
The bug
Role blocks fail silently inside of stateless grammars -- I think it's okay if they are only supported in stateful contexts, but the user should get an error.
To Reproduce
System info (please complete the following information):
guidance.__version__
): 0.1.15The text was updated successfully, but these errors were encountered: