Update examples/server/utils.hpp

Co-authored-by: Xuan Son Nguyen <thichthat@gmail.com>
This commit is contained in:
Georgi Gerganov 2024-07-12 12:37:59 +03:00 committed by GitHub
parent 9eec4c1eb3
commit 8428a98770
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,7 +132,7 @@ inline std::string format_chat(const struct llama_model * model, const std::stri
} else if (curr_msg["content"].is_array()) { } else if (curr_msg["content"].is_array()) {
for (const auto & part : curr_msg["content"]) { for (const auto & part : curr_msg["content"]) {
if (part.contains("text")) { if (part.contains("text")) {
content += part["text"].get<std::string>(); content += "\n" + part["text"].get<std::string>();
} }
} }
} else { } else {