From 407ac2e465f254732c9b4f4a5f01451dab9b90a4 Mon Sep 17 00:00:00 2001 From: Philipp Temminghoff Date: Thu, 5 Dec 2024 13:20:34 +0100 Subject: [PATCH] fix: enable_async for jinja env --- src/llmling/processors/jinjaprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llmling/processors/jinjaprocessor.py b/src/llmling/processors/jinjaprocessor.py index adff383..026c8cb 100644 --- a/src/llmling/processors/jinjaprocessor.py +++ b/src/llmling/processors/jinjaprocessor.py @@ -27,7 +27,7 @@ def __init__(self, jinja_settings: Jinja2Config | None = None) -> None: jinja_filters = jinja_kwargs.pop("filters", {}) jinja_globals = jinja_kwargs.pop("globals", {}) jinja_tests = jinja_kwargs.pop("tests", {}) - self._env = jinja2.Environment(**jinja_kwargs) + self._env = jinja2.Environment(**jinja_kwargs, enable_async=True) self._env.filters = jinja_filters self._env.globals = jinja_globals self._env.tests = jinja_tests