* bug-fix: don't attempt to log partial parsed messages to avoid crash due to unfinished UTF-8 sequences
}
}
auto msg = builder.result();
- LOG_DBG("Parsed message: %s\n", common_chat_msgs_to_json_oaicompat<json>({msg}).at(0).dump().c_str());
+ if (!is_partial) {
+ LOG_DBG("Parsed message: %s\n", common_chat_msgs_to_json_oaicompat<json>({msg}).at(0).dump().c_str());
+ }
return msg;
}