Update test-chat.cpp
This commit is contained in:
parent
09caa63451
commit
b1527292b6
1 changed files with 2 additions and 6 deletions
|
@ -18,12 +18,8 @@
|
||||||
using json = nlohmann::ordered_json;
|
using json = nlohmann::ordered_json;
|
||||||
|
|
||||||
static common_chat_msg msg_from_json(const json & message) {
|
static common_chat_msg msg_from_json(const json & message) {
|
||||||
common_chat_msg ret{
|
common_chat_msg ret;
|
||||||
"assistant",
|
ret.role = "assistant";
|
||||||
"",
|
|
||||||
{},
|
|
||||||
/* .tool_plan = */ "",
|
|
||||||
};
|
|
||||||
if (message.contains("content") && !message.at("content").is_null()) {
|
if (message.contains("content") && !message.at("content").is_null()) {
|
||||||
ret.content = message.at("content");
|
ret.content = message.at("content");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue