From: Anudit Nagar Date: Mon, 12 May 2025 11:56:42 +0000 (+0700) Subject: server : allow content to be null in oaicompat_completion_params_parse (#13477) X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=91159ee9df84edb72ccf874e353d2414f3a8c60d;p=pkg%2Fggml%2Fsources%2Fllama.cpp server : allow content to be null in oaicompat_completion_params_parse (#13477) --- diff --git a/tools/server/utils.hpp b/tools/server/utils.hpp index 23163f4f..b8d140e3 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; }