]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : convert_anthropic_to_oai: also copy chat_template_kwargs (#22154)
authorsrkizer <redacted>
Thu, 23 Apr 2026 18:32:46 +0000 (03:32 +0900)
committerGitHub <redacted>
Thu, 23 Apr 2026 18:32:46 +0000 (13:32 -0500)
tools/server/server-chat.cpp

index 34ec7982b51b1caaf6ce804c5e48a063d6f8e88b..a155834694486e0e0ab94b689c046ccbad8e1445 100644 (file)
@@ -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);
         }