Skip to content

Commit 91159ee

Browse files
authored
server : allow content to be null in oaicompat_completion_params_parse (ggml-org#13477)
1 parent 22cdab3 commit 91159ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/server/utils.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ static json oaicompat_completion_params_parse(
644644
}
645645
for (auto & msg : messages) {
646646
json & content = msg.at("content");
647-
if (content.is_string()) {
647+
if (content.is_string() || content.is_null()) {
648648
continue;
649649
}
650650

0 commit comments

Comments
 (0)