]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server: Mirroring /v1/responses to /responses to match /v1/chat/completions pattern...
authorSami Kama <redacted>
Fri, 27 Feb 2026 16:44:42 +0000 (08:44 -0800)
committerGitHub <redacted>
Fri, 27 Feb 2026 16:44:42 +0000 (00:44 +0800)
tools/server/server.cpp

index 542b984534c40cd45f4c3a41395ee9e0ad51de39..f353dcdde7bfeb41b90896122bb1200b5858abf9 100644 (file)
@@ -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));