Skip to content

--xl option does not work with templates #1296

@chriscarrollsmith

Description

@chriscarrollsmith

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions