@@ -825,8 +825,7 @@ struct server_context_impl {
825825
826826 server_metrics metrics;
827827
828- json json_ui_settings = json::object(); // Primary: new name
829- json json_webui_settings = json::object(); // Deprecated: use json_ui_settings instead (kept for compat)
828+ json json_ui_settings = json::object();
830829
831830 // Necessary similarity of prompt for slot selection
832831 float slot_prompt_similarity = 0 .0f ;
@@ -1308,7 +1307,6 @@ struct server_context_impl {
13081307 try {
13091308 json json_settings = json::parse (cfg);
13101309 json_ui_settings = json_settings;
1311- json_webui_settings = json_settings; // deprecated: keep in sync
13121310 } catch (const std::exception & e) {
13131311 SRV_ERR (" %s: failed to parse UI config: %s\n " , __func__, e.what ());
13141312 return false ;
@@ -3687,7 +3685,6 @@ server_context_meta server_context::get_meta() const {
36873685 /* has_inp_audio */ impl->chat_params .allow_audio ,
36883686 /* has_inp_video */ impl->chat_params .allow_video ,
36893687 /* json_ui_settings */ impl->json_ui_settings ,
3690- /* json_webui_settings */ impl->json_webui_settings , // Deprecated
36913688 /* slot_n_ctx */ impl->get_slot_n_ctx (),
36923689 /* pooling_type */ llama_pooling_type (impl->ctx_tgt ),
36933690
@@ -4300,12 +4297,8 @@ void server_routes::init_routes() {
43004297 { " endpoint_slots" , params.endpoint_slots },
43014298 { " endpoint_props" , params.endpoint_props },
43024299 { " endpoint_metrics" , params.endpoint_metrics },
4303- // New keys
43044300 { " ui" , params.ui },
43054301 { " ui_settings" , meta->json_ui_settings },
4306- // Deprecated: use ui/ui_settings instead (kept for backward compat)
4307- { " webui" , params.ui },
4308- { " webui_settings" , meta->json_ui_settings },
43094302 { " chat_template" , tmpl_default },
43104303 { " chat_template_caps" , meta->chat_template_caps },
43114304 { " bos_token" , meta->bos_token_str },
0 commit comments