]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
jinja : implement mixed type object keys (#18955)
authorSigbjørn Skjæret <redacted>
Tue, 27 Jan 2026 18:50:42 +0000 (19:50 +0100)
committerGitHub <redacted>
Tue, 27 Jan 2026 18:50:42 +0000 (19:50 +0100)
commit2b4cbd2834e427024bc7f935a1f232aecac6679b
tree8b0c6ee4b06a0c0153298aee6919637d6f4348ea
parent68ac3acb435450d5ba1e62748e17671815313dc3
jinja : implement mixed type object keys (#18955)

* implement mixed type object keys

* add tests

* refactor

* minor fixes

* massive refactor

* add more tests

* forgotten tuples

* fix array/object is_hashable

* correct (albeit broken) jinja responses

verified with transformers

* improved hashing and equality

* refactor hash function

* more exhausive test case

* clean up

* cont

* cont (2)

* missing cstring

---------

Co-authored-by: Xuan Son Nguyen <redacted>
common/jinja/runtime.cpp
common/jinja/runtime.h
common/jinja/string.cpp
common/jinja/string.h
common/jinja/utils.h
common/jinja/value.cpp
common/jinja/value.h
tests/test-chat-template.cpp
tests/test-jinja.cpp