server : fix router child env in containerized environments (#18562)
This commit is contained in:
parent
f1768d8f03
commit
da143b9940
3 changed files with 52 additions and 10 deletions
|
|
@ -105,7 +105,7 @@ private:
|
|||
void add_model(server_model_meta && meta);
|
||||
|
||||
public:
|
||||
server_models(const common_params & params, int argc, char ** argv, char ** envp);
|
||||
server_models(const common_params & params, int argc, char ** argv);
|
||||
|
||||
void load_models();
|
||||
|
||||
|
|
@ -147,8 +147,8 @@ struct server_models_routes {
|
|||
common_params params;
|
||||
json webui_settings = json::object();
|
||||
server_models models;
|
||||
server_models_routes(const common_params & params, int argc, char ** argv, char ** envp)
|
||||
: params(params), models(params, argc, argv, envp) {
|
||||
server_models_routes(const common_params & params, int argc, char ** argv)
|
||||
: params(params), models(params, argc, argv) {
|
||||
if (!this->params.webui_config_json.empty()) {
|
||||
try {
|
||||
webui_settings = json::parse(this->params.webui_config_json);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue