Update vars to be capitalised to be in line with other variables in config file (#6085)

This commit is contained in:
dorien-koelemeijer
2025-12-12 11:12:45 +11:00
committed by GitHub
parent 04c3c9dbf1
commit 469f99f9c9
6 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ impl SecurityManager {
let config = Config::global();
config
.get_param::<bool>("security_prompt_enabled")
.get_param::<bool>("SECURITY_PROMPT_ENABLED")
.unwrap_or(false)
}
+1 -1
View File
@@ -27,7 +27,7 @@ impl PromptInjectionScanner {
use crate::config::Config;
let config = Config::global();
if let Ok(threshold) = config.get_param::<f64>("security_prompt_threshold") {
if let Ok(threshold) = config.get_param::<f64>("SECURITY_PROMPT_THRESHOLD") {
return threshold as f32;
}