We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b812e1 commit 1fd5612Copy full SHA for 1fd5612
examples/server/server.cc
@@ -200,10 +200,11 @@ int main(int argc, char** argv) {
200
};
201
202
svr->Post("/loadmodel", handle_load_model);
203
- svr->Get("/unloadmodel", handle_unload_model);
+ // Use POST since httplib does not read request body for GET method
204
+ svr->Post("/unloadmodel", handle_unload_model);
205
svr->Post("/v1/chat/completions", handle_completions);
206
svr->Post("/v1/embeddings", handle_embeddings);
- svr->Get("/modelstatus", handle_get_model_status);
207
+ svr->Post("/modelstatus", handle_get_model_status);
208
209
LOG_INFO << "HTTP server listening: " << hostname << ":" << port;
210
svr->new_task_queue = [] {
0 commit comments