]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server: Fix `has_next_line` in JSON response (#10818)
authorMichelle Tan <redacted>
Sat, 14 Dec 2024 22:29:45 +0000 (22:29 +0000)
committerGitHub <redacted>
Sat, 14 Dec 2024 22:29:45 +0000 (23:29 +0100)
commit89d604f2c87af9db657d8a27a1528bc4b7579c29
treeb191b8fe8318217d97b2a6a1cefc046b2f6bca3b
parente52aba537a34d51a65cddec6bc6dafc9031edc63
server: Fix `has_next_line` in JSON response (#10818)

* Update server JSON response.

* Add unit test to check `has_new_line` JSON response

* Remove `has_new_line` unit test changes.

* Address code review comment: type check for `has_new_line` in unit test
examples/server/server.cpp
examples/server/tests/unit/test_completion.py
examples/server/utils.hpp