For some reason, sequence() (introduced in #927) is not a full drop-in replacement for zero_or_more(), even though it should be. One of the tests using Mock fails in a test which constrains the number of tokens generated. All others have been substituted without issue.
To Reproduce
In _sequences.py change zero_or_more() to be a wrapper for sequence()
System info (please complete the following information):
OS (e.g. Ubuntu, Windows 11, Mac OS, etc.): Win
Guidance Version (guidance.__version__): Synced GH Fork
The bug
For some reason,
sequence()
(introduced in #927) is not a full drop-in replacement forzero_or_more()
, even though it should be. One of the tests usingMock
fails in a test which constrains the number of tokens generated. All others have been substituted without issue.To Reproduce
In
_sequences.py
changezero_or_more()
to be a wrapper forsequence()
System info (please complete the following information):
guidance.__version__
): Synced GH Fork