]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
`tool-call`: fix non-tool-calling grammar crashes w/ Qwen / Hermes 2 templates (...
authorOlivier Chafik <redacted>
Fri, 11 Apr 2025 19:47:52 +0000 (12:47 -0700)
committerGitHub <redacted>
Fri, 11 Apr 2025 19:47:52 +0000 (21:47 +0200)
commitb6930ebc421e20399663bbd3bc7b7266d5236d06
tree3bf6056f03586a6b3938a9a7c8bdadb37d110327
parent68b08f36d047bfa048ebd7d16262c53bf9ece701
`tool-call`: fix non-tool-calling grammar crashes w/ Qwen / Hermes 2 templates (#12900)

* `tool-call`: don't call common_chat_params_init_hermes_2_pro when there aren't tools (or when there's a schema)

* test all chat formats w/o tools
common/chat.cpp
tests/test-chat.cpp