From 40e4ce5995f97942dd4794b45257c5b5ec755f30 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 12 Nov 2025 17:27:32 -0300 Subject: [PATCH] feat(llm): standardize ctx-size parameter naming Updated the parameter name from 'n-ctx-size' to 'ctx-size' in both config lookup and argument formatting for consistency. This change aligns with the naming convention used elsewhere in the codebase and makes the parameter name more concise while maintaining clarity. The functionality remains unchanged. --- src/llm/local.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llm/local.rs b/src/llm/local.rs index cffdad7e0..cf49236a2 100644 --- a/src/llm/local.rs +++ b/src/llm/local.rs @@ -230,7 +230,7 @@ pub async fn start_llm_server( .unwrap_or("50".to_string()); let n_ctx_size = config_manager - .get_config(&default_bot_id, "llm-server-n-ctx-size", None) + .get_config(&default_bot_id, "llm-server-ctx-size", None) .unwrap_or("4096".to_string()); @@ -259,7 +259,7 @@ pub async fn start_llm_server( if n_predict != "0" { args.push_str(&format!(" --n-predict {}", n_predict)); } - args.push_str(&format!(" --n-ctx-size {}", n_ctx_size)); + args.push_str(&format!(" --ctx-size {}", n_ctx_size)); if cfg!(windows) { let mut cmd = tokio::process::Command::new("cmd");