فهرست منبع

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

Anudit Nagar 8 ماه پیش
والد
کامیت
91159ee9df
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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;
         }