Skip to content
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

No valid option generated in #select when options don't start with spaces #79

Closed
Ryul0rd opened this issue May 20, 2023 · 1 comment
Closed

Comments

@Ryul0rd
Copy link

Ryul0rd commented May 20, 2023

The bug
When I run the code below, I get the following error:
ValueError: No valid option generated in #select! Please post a GitHub issue since this should not happen :)

To Reproduce

# doesn't work
guidance(
    "Hello, {{#select 'name'}}Alice{{or}}Bob{{/select}}",
    llm=guidance.llms.Transformers("gpt2"),
)()

# works
guidance(
    "Hello,{{#select 'name'}} Alice{{or}} Bob{{/select}}",
    llm=guidance.llms.Transformers("gpt2"),
)()

System info (please complete the following information):

  • OS: PopOS 22.04
  • Guidance Version (guidance.__version__): 0.0.49
@Mihaiii
Copy link
Contributor

Mihaiii commented May 20, 2023

Should be clone of #67 for which I opened #78 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants