From 9a4be20cffca61bd7c6dfa3b96beaba7705faf9c Mon Sep 17 00:00:00 2001 From: Soreepeong <3614868+Soreepeong@users.noreply.github.com> Date: Mon, 20 Apr 2026 15:53:11 +0900 Subject: [PATCH] Support `chat_template_kwargs` for `/v1/messages` --- tools/server/server-common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/server/server-common.cpp b/tools/server/server-common.cpp index cae64884b36..a2b39ce44ae 100644 --- a/tools/server/server-common.cpp +++ b/tools/server/server-common.cpp @@ -1703,7 +1703,7 @@ json convert_anthropic_to_oai(const json & body) { } // Pass through common params - for (const auto & key : {"temperature", "top_p", "top_k", "stream"}) { + for (const auto & key : {"temperature", "top_p", "top_k", "stream", "chat_template_kwargs"}) { if (body.contains(key)) { oai_body[key] = body.at(key); }