server : allow content to be null in oaicompat_completion_params_parse (#13477)
This commit is contained in:
parent
22cdab343b
commit
91159ee9df
1 changed files with 1 additions and 1 deletions
|
@ -644,7 +644,7 @@ static json oaicompat_completion_params_parse(
|
||||||
}
|
}
|
||||||
for (auto & msg : messages) {
|
for (auto & msg : messages) {
|
||||||
json & content = msg.at("content");
|
json & content = msg.at("content");
|
||||||
if (content.is_string()) {
|
if (content.is_string() || content.is_null()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue