Kaynağa Gözat

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

Anudit Nagar 8 ay önce
ebeveyn
işleme
91159ee9df
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      tools/server/utils.hpp

+ 1 - 1
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;
         }