bugfix: TemplateNotFound on windows (#1185)

Co-authored-by: Shuchang Zheng <shu@skyvern.com>
This commit is contained in:
JaysonAlbert
2024-11-19 09:37:49 +08:00
committed by GitHub
parent e656f1add6
commit 2c81875baf

View File

@@ -98,7 +98,7 @@ class PromptEngine:
str: The populated template.
"""
try:
template = os.path.join(self.model, template)
template = "/".join([self.model, template])
jinja_template = self.env.get_template(f"{template}.j2")
return jinja_template.render(**kwargs)
except Exception: