server : allow content to be null in oaicompat_completion_params_parse (#13477)

This commit is contained in:
Anudit Nagar
2025-05-12 18:56:42 +07:00
committed by GitHub
parent 22cdab343b
commit 91159ee9df

View File

@ -644,7 +644,7 @@ static json oaicompat_completion_params_parse(
} }
for (auto & msg : messages) { for (auto & msg : messages) {
json & content = msg.at("content"); json & content = msg.at("content");
if (content.is_string()) { if (content.is_string() || content.is_null()) {
continue; continue;
} }