llama_cpp_for_radxa_dragon_.../common
Sid Mohan 0dfcd3b607
jinja : add missing 'in' test to template engine (#19004) (#19239)
* jinja : add missing 'in' test to template engine (#19004)

The jinja template parser was missing the 'in' test from
global_builtins(), causing templates using reject("in", ...),
select("in", ...), or 'x is in(y)' to fail with
"selectattr: unknown test 'in'".

This broke tool-calling for Qwen3-Coder and any other model
whose chat template uses the 'in' test.

Added test_is_in supporting array, string, and object containment
checks, mirroring the existing 'in' operator logic in runtime.cpp.

Includes test cases for all three containment types plus
reject/select filter usage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* reuse test_is_in in binary op

---------

Co-authored-by: Sid Mohan <sidmohan0@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Xuan Son Nguyen <son@huggingface.co>
2026-02-02 21:00:55 +01:00
..
jinja jinja : add missing 'in' test to template engine (#19004) (#19239) 2026-02-02 21:00:55 +01:00
arg.cpp spec : add ngram-mod (#19164) 2026-01-30 18:21:48 +02:00
arg.h
base64.hpp
build-info.cpp.in
chat-parser-xml-toolcall.cpp
chat-parser-xml-toolcall.h
chat-parser.cpp
chat-parser.h
chat-peg-parser.cpp
chat-peg-parser.h
chat.cpp chat : add parsing for solar-open-100b (#18540) 2026-01-29 16:06:15 +01:00
chat.h
CMakeLists.txt spec : add ngram-mod (#19164) 2026-01-30 18:21:48 +02:00
common.cpp spec : add self‑speculative decoding (no draft model required) + refactor (#18471) 2026-01-28 19:42:42 +02:00
common.h spec : add ngram-mod (#19164) 2026-01-30 18:21:48 +02:00
console.cpp
console.h
debug.cpp
debug.h
download.cpp
download.h
http.h
json-partial.cpp
json-partial.h
json-schema-to-grammar.cpp
json-schema-to-grammar.h
llguidance.cpp
log.cpp
log.h
ngram-cache.cpp spec : add self‑speculative decoding (no draft model required) + refactor (#18471) 2026-01-28 19:42:42 +02:00
ngram-cache.h spec : add self‑speculative decoding (no draft model required) + refactor (#18471) 2026-01-28 19:42:42 +02:00
ngram-map.cpp spec : various improvements ton ngram-map + docs (#19253) 2026-02-02 08:26:58 +02:00
ngram-map.h spec : various improvements ton ngram-map + docs (#19253) 2026-02-02 08:26:58 +02:00
ngram-mod.cpp spec : add ngram-mod (#19164) 2026-01-30 18:21:48 +02:00
ngram-mod.h ngram-mod : fix build [no ci] (#19216) 2026-01-30 21:27:27 +02:00
peg-parser.cpp
peg-parser.h
preset.cpp
preset.h
regex-partial.cpp
regex-partial.h
sampling.cpp
sampling.h
speculative.cpp spec : various improvements ton ngram-map + docs (#19253) 2026-02-02 08:26:58 +02:00
speculative.h spec : add ngram-mod (#19164) 2026-01-30 18:21:48 +02:00
unicode.cpp
unicode.h