]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server : return HTTP 400 on invalid grammar (#24144) (#24154)
authorAnuj Attri <redacted>
Thu, 18 Jun 2026 10:49:14 +0000 (06:49 -0400)
committerGitHub <redacted>
Thu, 18 Jun 2026 10:49:14 +0000 (12:49 +0200)
commit10786217e9d40c848ac0133cbe9c5f22a52421bb
tree78637416301fadda5b48a8e273ebf8d2f300ecba
parent552258c5350dcf86c6a1e9a2dcd45f06076a4667
server : return HTTP 400 on invalid grammar (#24144) (#24154)

Throw on grammar parse failure so the server returns HTTP 400
instead of silently dropping the constraint.
Add a regression test for the invalid-grammar response.

Fixes #24144
common/sampling.cpp
tools/server/tests/unit/test_chat_completion.py