]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server : remove CPPHTTPLIB_NO_EXCEPTIONS define (#11622)
authorDaniel Bevenius <redacted>
Mon, 3 Feb 2025 15:45:38 +0000 (16:45 +0100)
committerGitHub <redacted>
Mon, 3 Feb 2025 15:45:38 +0000 (16:45 +0100)
commit5598f475be3e31430fbe17ebb85654ec90dc201e
tree933ad02377c9c555d05e80f5bb978e61f8f8415f
parent8ec05832fa8409c49b3bbd13f957c6ae8486e618
server : remove CPPHTTPLIB_NO_EXCEPTIONS define (#11622)

This commit removes the CPPHTTPLIB_NO_EXCEPTIONS define from the server
code.

The motivation for this is that when using a debug build the server
would crash when an exception was throws and terminate the server
process, as it was unhandled. When CPPHTTPLIB_NO_EXCEPTIONS is set
cpp_httplib will not call the exception handler, which would normally
return a 500 error to the client. This caused tests to fail when using
a debug build.

Fixes: https://github.com/ggerganov/llama.cpp/issues/11613
examples/server/utils.hpp