Skip to content

Commit 8fad3c7

Browse files
authored
server : Log original chat template parsing error (#12233)
1 parent 7cf64f6 commit 8fad3c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/server/server.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,7 @@ struct server_context {
19001900
try {
19011901
common_chat_format_example(chat_templates.get(), params.use_jinja);
19021902
} catch (const std::exception & e) {
1903+
SRV_WRN("%s: Chat template parsing error: %s\n", __func__, e.what());
19031904
SRV_WRN("%s: The chat template that comes with this model is not yet supported, falling back to chatml. This may cause the model to output suboptimal responses\n", __func__);
19041905
chat_templates = common_chat_templates_init(model, "chatml");
19051906
}

0 commit comments

Comments
 (0)