Update vars to be capitalised to be in line with other variables in config file (#6085)
This commit is contained in:
committed by
GitHub
parent
04c3c9dbf1
commit
469f99f9c9
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user