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) {
3907
3907
res_ok (res, {{ " success" , true }});
3908
3908
};
3909
3909
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) {
3911
3911
json data = {
3912
3912
{
3913
3913
" template" , common_chat_templates_source (ctx_server.chat_templates .get ()),
@@ -4486,7 +4486,7 @@ int main(int argc, char ** argv) {
4486
4486
svr->Get (" /metrics" , handle_metrics);
4487
4487
svr->Get (" /props" , handle_props);
4488
4488
svr->Post (" /props" , handle_props_change);
4489
- svr->Post (" /api/show" , handle_api );
4489
+ svr->Post (" /api/show" , handle_api_show );
4490
4490
svr->Get (" /models" , handle_models); // public endpoint (no API key check)
4491
4491
svr->Get (" /v1/models" , handle_models); // public endpoint (no API key check)
4492
4492
svr->Post (" /completion" , handle_completions); // legacy
You can’t perform that action at this time.
0 commit comments