File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3907,7 +3907,7 @@ int main(int argc, char ** argv) {
39073907 res_ok (res, {{ " success" , true }});
39083908 };
39093909
3910- const auto handle_api = [&ctx_server, &res_ok](const httplib::Request &, httplib::Response & res) {
3910+ const auto handle_api_show = [&ctx_server, &res_ok](const httplib::Request &, httplib::Response & res) {
39113911 json data = {
39123912 {
39133913 " template" , common_chat_templates_source (ctx_server.chat_templates .get ()),
@@ -4486,7 +4486,7 @@ int main(int argc, char ** argv) {
44864486 svr->Get (" /metrics" , handle_metrics);
44874487 svr->Get (" /props" , handle_props);
44884488 svr->Post (" /props" , handle_props_change);
4489- svr->Post (" /api/show" , handle_api );
4489+ svr->Post (" /api/show" , handle_api_show );
44904490 svr->Get (" /models" , handle_models); // public endpoint (no API key check)
44914491 svr->Get (" /v1/models" , handle_models); // public endpoint (no API key check)
44924492 svr->Post (" /completion" , handle_completions); // legacy
You can’t perform that action at this time.
0 commit comments