Skip to content

Distribute and run LLMs with a single file.

Increase server max payload size

Justine Tunney3119f09e3d44
diff --git a/llama.cpp/server/server.cpp b/llama.cpp/server/server.cpp
index d5c80beb..697507bb 100644
--- a/llama.cpp/server/server.cpp
+++ b/llama.cpp/server/server.cpp
@@ -14,6 +14,7 @@
#include "llamafile/version.h"
#define CPPHTTPLIB_NO_EXCEPTIONS 1
+#define CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH 1048576
#include "httplib.h"
#include "json.h"