Skip to content

Commit cd5e141

Browse files
CISCmglambda
authored andcommitted
server : Log original chat template parsing error (ggml-org#12233)
1 parent 6521439 commit cd5e141

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,7 @@ struct server_context {
19051905
try {
19061906
common_chat_format_example(chat_templates.get(), params.use_jinja);
19071907
} catch (const std::exception & e) {
1908+
SRV_WRN("%s: Chat template parsing error: %s\n", __func__, e.what());
19081909
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__);
19091910
chat_templates = common_chat_templates_init(model, "chatml");
19101911
}

0 commit comments

Comments
 (0)