common : default content to an empty string (#18485)
* common : default content to an empty string * common : fix tests that break when content != null
This commit is contained in:
1 parent
ac1d0eb7bf
commit
0f89d2ecf1
3 files changed
+9
-7
No files matched your search
+1
-1
@@ -319,7 +319,7 @@ json common_chat_msgs_to_json_oaicompat(const std::vector<common_chat_msg> & msg
|
||||
}
|
||||
}
|
||||
} else {
|
||||
jmsg["content"] = json(); // null
|
||||
jmsg["content"] = "";
|
||||
}
|
||||
if (!msg.reasoning_content.empty()) {
|
||||
jmsg["reasoning_content"] = msg.reasoning_content;
|
||||
|
||||
Reference in new issue
Block a user