You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Enable Jinja2 templates and Combinatorial generation checked, setting Max generations to 0 raises an exception trying to call range(0) on this line:
prompts = [jinja_template.render(**self._context) for i in range(num_prompts)]
Setting Max generations to 1 works around the issue (which I'm not sure is intended or not).
This should make 0 behave as expected:
prompts = [jinja_template.render(**self._context) for i in range(num_prompts or 1)]
The text was updated successfully, but these errors were encountered:
With
Enable Jinja2 templates
andCombinatorial generation
checked, settingMax generations
to0
raises an exception trying to callrange(0)
on this line:Setting
Max generations
to1
works around the issue (which I'm not sure is intended or not).This should make 0 behave as expected:
The text was updated successfully, but these errors were encountered: