server: add --agent arg, remove redundant webui naming compat (#24801)

* server: add --agent arg, remove redundant webui naming compat

* corrent env

* fix the test

* llama-gen-docs

* nits: wordings
This commit is contained in:
Xuan-Son Nguyen
2026-06-19 16:06:13 +02:00
committed by GitHub
parent 38724ab593
commit 8c2d6f6475
8 changed files with 43 additions and 92 deletions
+1 -4
View File
@@ -212,10 +212,7 @@ struct server_models_routes {
server_models models;
server_models_routes(const common_params & params, int argc, char ** argv)
: params(params), models(params, argc, argv) {
// Support both new ui_config_json and deprecated webui_config_json
const std::string & cfg = !this->params.ui_config_json.empty()
? this->params.ui_config_json
: this->params.webui_config_json;
const std::string & cfg = this->params.ui_config_json;
if (!cfg.empty()) {
try {
json json_settings = json::parse(cfg);