Skip to content

Commit 185cbff

Browse files
authored
server : convert_anthropic_to_oai: also copy chat_template_kwargs (ggml-org#22154)
1 parent c78fb90 commit 185cbff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/server/server-chat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ json server_chat_convert_anthropic_to_oai(const json & body) {
514514
}
515515

516516
// Pass through common params
517-
for (const auto & key : {"temperature", "top_p", "top_k", "stream"}) {
517+
for (const auto & key : {"temperature", "top_p", "top_k", "stream", "chat_template_kwargs"}) {
518518
if (body.contains(key)) {
519519
oai_body[key] = body.at(key);
520520
}

0 commit comments

Comments
 (0)