Skip to content

Commit 9dc3dc7

Browse files
author
ThinkThinkSyn
committed
fix data bug
1 parent c126200 commit 9dc3dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4334,7 +4334,7 @@ int main(int argc, char ** argv) {
43344334

43354335
const auto handle_completions = [&ctx_server, &handle_completions_impl](const httplib::Request & req, httplib::Response & res) {
43364336
json data = json::parse(req.body);
4337-
json & medias = json_value(data, "medias", json::array());
4337+
json & medias = json_value(&data, "medias", json::array());
43384338
auto & opt = ctx_server.oai_parser_opt;
43394339
std::vector<raw_buffer> files;
43404340

0 commit comments

Comments
 (0)