From b1527292b6aff000a2a8f7f2f5bb4aba0eeb133c Mon Sep 17 00:00:00 2001 From: ochafik Date: Tue, 4 Feb 2025 03:56:03 +0000 Subject: [PATCH] Update test-chat.cpp --- tests/test-chat.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/test-chat.cpp b/tests/test-chat.cpp index 9956c1f1f..d3ad090be 100644 --- a/tests/test-chat.cpp +++ b/tests/test-chat.cpp @@ -18,12 +18,8 @@ using json = nlohmann::ordered_json; static common_chat_msg msg_from_json(const json & message) { - common_chat_msg ret{ - "assistant", - "", - {}, - /* .tool_plan = */ "", - }; + common_chat_msg ret; + ret.role = "assistant"; if (message.contains("content") && !message.at("content").is_null()) { ret.content = message.at("content"); }