server : accept /rerank endpoint in addition to /v1/rerank [no ci]

This commit is contained in:
Georgi Gerganov 2024-09-25 17:12:32 +03:00
parent 62a45d12ef
commit 7bde9a0452
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -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);