]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : Log original chat template parsing error (#12233)
authorSigbjørn Skjæret <redacted>
Fri, 7 Mar 2025 10:15:33 +0000 (11:15 +0100)
committerGitHub <redacted>
Fri, 7 Mar 2025 10:15:33 +0000 (11:15 +0100)
examples/server/server.cpp

index 2a526b0e7acdd4b115d627010333d70bce877c15..e1371dbf8cbb053f96c297969392dcffc8071230 100644 (file)
@@ -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");
         }