From: Sami Kama Date: Fri, 27 Feb 2026 16:44:42 +0000 (-0800) Subject: server: Mirroring /v1/responses to /responses to match /v1/chat/completions pattern... X-Git-Tag: upstream/0.0.8611~434 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5596a35791806ec0222b7e0d5ecb80b48b24585a;p=pkg%2Fggml%2Fsources%2Fllama.cpp server: Mirroring /v1/responses to /responses to match /v1/chat/completions pattern (#19873) --- diff --git a/tools/server/server.cpp b/tools/server/server.cpp index 542b98453..f353dcdde 100644 --- a/tools/server/server.cpp +++ b/tools/server/server.cpp @@ -178,6 +178,7 @@ int main(int argc, char ** argv) { ctx_http.post("/v1/chat/completions", ex_wrapper(routes.post_chat_completions)); ctx_http.post("/api/chat", ex_wrapper(routes.post_chat_completions)); // ollama specific endpoint ctx_http.post("/v1/responses", ex_wrapper(routes.post_responses_oai)); + ctx_http.post("/responses", ex_wrapper(routes.post_responses_oai)); ctx_http.post("/v1/messages", ex_wrapper(routes.post_anthropic_messages)); // anthropic messages API ctx_http.post("/v1/messages/count_tokens", ex_wrapper(routes.post_anthropic_count_tokens)); // anthropic token counting ctx_http.post("/infill", ex_wrapper(routes.post_infill));