]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : allow requests larger than 8K (#4500)
authormzcu <redacted>
Sun, 17 Dec 2023 14:54:37 +0000 (15:54 +0100)
committerGitHub <redacted>
Sun, 17 Dec 2023 14:54:37 +0000 (16:54 +0200)
examples/server/server.cpp

index 5f93dcb66a4e23412f662df24601c90e2ad83d2e..a9f8b3747be246aa5c53ca17acfb3c3c6004316d 100644 (file)
@@ -10,7 +10,8 @@
 // crash the server in debug mode, otherwise send an http 500 error
 #define CPPHTTPLIB_NO_EXCEPTIONS 1
 #endif
-
+// increase max payload length to allow use of larger context size
+#define CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH 1048576
 #include "httplib.h"
 #include "json.hpp"