mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
feat(server): add recipe-based model management (#2176)
This commit is contained in:
1 parent
9b7da27374
commit
0518b34374
132 files changed
+6688
-147
No files matched your search
@@ -9,3 +9,18 @@ void register_index_endpoints(httplib::Server& svr, const SDSvrParams& svr_param
|
||||
void register_openai_api_endpoints(httplib::Server& svr, ServerRuntime& rt);
|
||||
void register_sdapi_endpoints(httplib::Server& svr, ServerRuntime& rt);
|
||||
void register_sdcpp_api_endpoints(httplib::Server& svr, ServerRuntime& rt);
|
||||
void register_model_endpoints(httplib::Server& svr, ServerRuntime& rt);
|
||||
|
||||
class RuntimeRoutes {
|
||||
httplib::Server& server_;
|
||||
ServerRuntime& runtime_;
|
||||
|
||||
httplib::Server::Handler protect(httplib::Server::Handler handler);
|
||||
|
||||
public:
|
||||
RuntimeRoutes(httplib::Server& server, ServerRuntime& runtime)
|
||||
: server_(server), runtime_(runtime) {}
|
||||
|
||||
void get(const std::string& pattern, httplib::Server::Handler handler);
|
||||
void post(const std::string& pattern, httplib::Server::Handler handler);
|
||||
};
|
||||
Reference in new issue
Block a user