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

Templates still require input argument, params alone not enough like docs suggest #684

Open
cmardiros opened this issue Dec 22, 2024 · 0 comments

Comments

@cmardiros
Copy link

I've been following the docs here https://llm.datasette.io/en/stable/templates.html and for me the following hangs:

llm -t recipe -p ingredients 'sausages, milk' -p country Germany

but adding an extra "input" at the end works fine:

llm -t recipe -p ingredients 'sausages, milk' -p country Germany "dinner"

I believe this is due to the fact that a prompt is still waited on from stdin. I am not sure if that is the intended behaviour but the docs suggest that the prompt defined in the template should be sufficient but it's not so perhaps just a small clarification is needed in the docs.

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

1 participant