From 7bde9a04525d4d0ab5b053649dfb5620daa956a2 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Wed, 25 Sep 2024 17:12:32 +0300 Subject: [PATCH] server : accept /rerank endpoint in addition to /v1/rerank [no ci] --- examples/server/server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index ce65164d1..084dea212 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -3296,6 +3296,7 @@ int main(int argc, char ** argv) { svr->Post("/embedding", handle_embeddings); // legacy svr->Post("/embeddings", handle_embeddings); svr->Post("/v1/embeddings", handle_embeddings); + svr->Post("/rerank", handle_rerank); svr->Post("/v1/rerank", handle_rerank); svr->Post("/tokenize", handle_tokenize); svr->Post("/detokenize", handle_detokenize);