]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : allow content to be null in oaicompat_completion_params_parse (#13477)
authorAnudit Nagar <redacted>
Mon, 12 May 2025 11:56:42 +0000 (18:56 +0700)
committerGitHub <redacted>
Mon, 12 May 2025 11:56:42 +0000 (13:56 +0200)
tools/server/utils.hpp

index 23163f4fe939ecba2dcecc0a71b6e62628c7fb51..b8d140e3f051cc79b20fe2abc6fffb3b6c25b62f 100644 (file)
@@ -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;
         }