Added Float type to the function parameter values (#77)

This commit is contained in:
Sampreeth Sarma 2024-09-25 13:29:20 -07:00 committed by GitHub
parent 7505a0fc1f
commit 7f0fcb372b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 1505 additions and 45 deletions

View file

@ -68,6 +68,7 @@ pub struct ToolsDefinition {
pub enum IntOrString {
Integer(i32),
Text(String),
Float(f64),
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@ -187,4 +188,4 @@ pub struct PromptGuardResponse {
pub jailbreak_prob: Option<f64>,
pub toxic_verdict: Option<bool>,
pub jailbreak_verdict: Option<bool>,
}
}

View file

@ -193,4 +193,4 @@ ratelimits:
let c: super::Configuration = serde_yaml::from_str(CONFIGURATION).unwrap();
assert_eq!(c.prompt_guards.unwrap().input_guard.len(), 2);
}
}
}