adapt jinja

This commit is contained in:
Xuan Son Nguyen
2026-08-21 18:51:09 +02:00
parent 7a3360f6d8
commit f262180084
7 changed files with 57 additions and 23 deletions
+2 -1
View File
@@ -6,6 +6,7 @@
#include "common.h"
#include "ggml.h"
#include "json-schema-to-grammar.h"
#include "json.h"
#include "log.h"
#include "jinja/value.h"
@@ -972,7 +973,7 @@ static std::string common_chat_template_direct_apply_impl(
jinja::caps_apply_reasoning_effort(ctx, reasoning_effort);
}
jinja::global_from_json(ctx, inp, inputs.mark_input);
jinja::global_from_json(ctx, common_json_ref_from_raw(inp), inputs.mark_input);
// render
jinja::runtime runtime(ctx);