Procházet zdrojové kódy

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

Anudit Nagar před 8 měsíci
rodič
revize
91159ee9df
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
         }