Skip to content

Commit b152729

Browse files
author
ochafik
committed
Update test-chat.cpp
1 parent 09caa63 commit b152729

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test-chat.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@
1818
using json = nlohmann::ordered_json;
1919

2020
static common_chat_msg msg_from_json(const json & message) {
21-
common_chat_msg ret{
22-
"assistant",
23-
"",
24-
{},
25-
/* .tool_plan = */ "",
26-
};
21+
common_chat_msg ret;
22+
ret.role = "assistant";
2723
if (message.contains("content") && !message.at("content").is_null()) {
2824
ret.content = message.at("content");
2925
}

0 commit comments

Comments
 (0)