From: Sigbjørn Skjæret Date: Fri, 7 Mar 2025 10:15:33 +0000 (+0100) Subject: server : Log original chat template parsing error (#12233) X-Git-Tag: upstream/0.0.4853~4 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=8fad3c7a7c54a25a1ca38dfb08244df55288e675;p=pkg%2Fggml%2Fsources%2Fllama.cpp server : Log original chat template parsing error (#12233) --- diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 2a526b0e..e1371dbf 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -1900,6 +1900,7 @@ struct server_context { try { common_chat_format_example(chat_templates.get(), params.use_jinja); } catch (const std::exception & e) { + SRV_WRN("%s: Chat template parsing error: %s\n", __func__, e.what()); 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__); chat_templates = common_chat_templates_init(model, "chatml"); }