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
@@ -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