Skip to content

Commit 359cf64

Browse files
committed
cont : update handler name
1 parent b1a6c8b commit 359cf64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/server/server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)