Skip to content

Commit b31259b

Browse files
author
Olivier Chafik
committed
More debug logs
1 parent 4799185 commit b31259b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/server/server.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ struct server_task {
345345
auto it = data.find("chat_format");
346346
if (it != data.end()) {
347347
params.oaicompat_chat_format = static_cast<common_chat_format>(it->get<int>());
348-
LOG_DBG("Chat format: %s\n", common_chat_format_name(params.oaicompat_chat_format).c_str());
348+
LOG_INF("Chat format: %s\n", common_chat_format_name(params.oaicompat_chat_format).c_str());
349349
} else {
350350
params.oaicompat_chat_format = defaults.oaicompat_chat_format;
351351
}
@@ -697,6 +697,7 @@ struct server_task_result_cmpl_final : server_task_result {
697697
std::string finish_reason = "length";
698698
common_chat_msg message;
699699
if (stop == STOP_TYPE_WORD || stop == STOP_TYPE_EOS) {
700+
LOG_DBG("Parsing chat message: %s\n", content.c_str());
700701
message = common_chat_parse(content, oaicompat_chat_format);
701702
finish_reason = message.tool_calls.empty() ? "stop" : "tool_calls";
702703
} else {

0 commit comments

Comments
 (0)