diff --git a/tools/server/utils.hpp b/tools/server/utils.hpp index 23163f4fe939e..b8d140e3f051c 100644 --- a/tools/server/utils.hpp +++ b/tools/server/utils.hpp @@ -644,7 +644,7 @@ static json oaicompat_completion_params_parse( } for (auto & msg : messages) { json & content = msg.at("content"); - if (content.is_string()) { + if (content.is_string() || content.is_null()) { continue; }