promptfoo / promptfoo

Test your prompts, agents, and RAGs. Redteaming, pentesting, vulnerability scanning for LLMs. Improve your app's quality and catch problems. Compare performance of GPT, Claude, Gemini, Llama, and more. Simple declarative configs with command line and CI/CD integration.

Home Page:https://www.promptfoo.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nunjucks Custom Filters not working

christiankyle-ching opened this issue · comments

Example template seem to be not working anymore: https://github.com/promptfoo/promptfoo/tree/main/examples/nunjucks-custom-filters

When viewing YAML via the promptfoo view, the nunjucksFilters is missing.

Thanks.

Hi @christiankyle-ching,

Can you elaborate on "not working"? It does look like the allcaps filter is working as intended in the example:

llm eval with nunjucks filter

I agree that it should appear in the "View YAML" modal, though.