server : convert_anthropic_to_oai: also copy chat_template_kwargs (#22154)

This commit is contained in:
srkizer
2026-04-24 03:32:46 +09:00
committed by GitHub
parent c78fb909b2
commit 185cbff6f1
+1 -1
View File
@@ -514,7 +514,7 @@ json server_chat_convert_anthropic_to_oai(const json & body) {
} }
// Pass through common params // 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)) { if (body.contains(key)) {
oai_body[key] = body.at(key); oai_body[key] = body.at(key);
} }