From 81a115b781e83db833621106236d592a9faf2307 Mon Sep 17 00:00:00 2001 From: DocShotgun <126566557+DocShotgun@users.noreply.github.com> Date: Sun, 3 Aug 2025 16:10:08 -0700 Subject: [PATCH] Templating: Support chat_template.jinja --- common/templating.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/templating.py b/common/templating.py index a33895e..cc0cceb 100644 --- a/common/templating.py +++ b/common/templating.py @@ -218,6 +218,7 @@ async def find_prompt_template(template_name, model_dir: pathlib.Path): logger.info("Attempting to load a prompt template if present.") find_template_functions = [ + lambda: PromptTemplate.from_file(model_dir / "chat_template.jinja"), lambda: PromptTemplate.from_model_json( model_dir / "chat_template.json", key="chat_template",