Update examples/server/utils.hpp
Co-authored-by: Xuan Son Nguyen <thichthat@gmail.com>
This commit is contained in:
parent
9eec4c1eb3
commit
8428a98770
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ inline std::string format_chat(const struct llama_model * model, const std::stri
|
|||
} else if (curr_msg["content"].is_array()) {
|
||||
for (const auto & part : curr_msg["content"]) {
|
||||
if (part.contains("text")) {
|
||||
content += part["text"].get<std::string>();
|
||||
content += "\n" + part["text"].get<std::string>();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue