From 1feccd4174a1e9b995fc60fb11237468f57520a2 Mon Sep 17 00:00:00 2001 From: gapeleon Date: Mon, 24 Nov 2025 16:53:15 +1100 Subject: [PATCH] Fix: Register missing /apply-template endpoint (#999) The handle_apply_template handler was defined but never registered as an HTTP endpoint, causing 404 errors when calling POST /apply-template. This commit adds the missing endpoint registration to match the functionality available in llama.cpp mainline. Co-authored-by: Gapeleon --- examples/server/server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 18d2af8a..9bf4f171 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -5423,6 +5423,7 @@ int main(int argc, char ** argv) { svr->Post("/v1/embeddings", handle_embeddings); svr->Post("/tokenize", handle_tokenize); svr->Post("/detokenize", handle_detokenize); + svr->Post("/apply-template", handle_apply_template); // LoRA adapters hotswap svr->Get ("/lora-adapters", handle_lora_adapters_list); svr->Post("/lora-adapters", handle_lora_adapters_apply);