Skip to content

Commit

Permalink
proper render
Browse files Browse the repository at this point in the history
  • Loading branch information
eavanvalkenburg committed Jun 3, 2024
1 parent c71f9c9 commit 8fd8476
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def render(self, kernel: "Kernel", arguments: Optional["KernelArguments"]
raise Jinja2TemplateRenderException("Error rendering template, template is None")
try:
template = self._env.from_string(self.prompt_template_config.template, globals=helpers)
return template.render(**arguments)
return await template.render_async(**arguments)
except TemplateError as exc:
logger.error(
f"Error rendering prompt template: {self.prompt_template_config.template} with arguments: {arguments}"
Expand Down

0 comments on commit 8fd8476

Please sign in to comment.