mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-02-07 23:10:10 +00:00
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 <gapeleon@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user