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.
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-11-12 17:27:32 -03:00
parent 94a7af295d
commit a024f9590c

View file

@ -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");