/ releasenotes / notes / fix-jinja2-variable-extraction-57f34c6bd249e214.yaml
fix-jinja2-variable-extraction-57f34c6bd249e214.yaml
1  ---
2  fixes:
3    - |
4      Fixes jinja2 variable detection in ``ConditionalRouter``, ``ChatPromptBuilder``, ``PromptBuilder`` and ``OutputAdapter`` by properly
5      skipping variables that are assigned within the template.
6      Previously under specific scenarios variables assigned within a template would falsely be picked up as input variables to the component.
7      For more information you can check out the parent issue in the Jinja2 library here: https://github.com/pallets/jinja/issues/2069