`--xl` option does not work with templates
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start by running the two commands in the reproduction and trace how the CLI handles --xl for a saved template versus an arbitrary prompt. Check the option and template-processing entry points, then verify that the last fenced SVG code block is extracted when using --template pelican --xl without changing the arbitrary-prompt behavior.
Written by the indexing model from the issue text.
Description
The --xl flag should extract the last fenced code block in the LLM response, and it does this successfully when used with an arbitrary prompt. It does not, however, work when used with a prompt template.
Reproduction
llm "Create an SVG of a pelican riding a bicycle." --save pelican
llm --template pelican --xl
The option flag should cause the SVG code block to be extracted from the markdown response, but instead the entire response is printed, and the option flag is ignored.
- Dominant language
- Python
- Stars
- 12.5k
- Forks
- 998
- Avg merge
- 8d 1h
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from simonw/llm
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100