From: srkizer Date: Thu, 23 Apr 2026 18:32:46 +0000 (+0900) Subject: server : convert_anthropic_to_oai: also copy chat_template_kwargs (#22154) X-Git-Tag: upstream/0.0.10438~1529 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=185cbff6f1b460e2ac193fbe7c55dd6c17ff0b1b;p=pkg%2Fggml%2Fsources%2Fllama.cpp server : convert_anthropic_to_oai: also copy chat_template_kwargs (#22154) --- diff --git a/tools/server/server-chat.cpp b/tools/server/server-chat.cpp index 34ec7982b..a15583469 100644 --- a/tools/server/server-chat.cpp +++ b/tools/server/server-chat.cpp @@ -514,7 +514,7 @@ json server_chat_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); }