mirror of
https://github.com/katanemo/plano.git
synced 2026-06-23 15:38:07 +02:00
Added Float type to the function parameter values (#77)
This commit is contained in:
parent
7505a0fc1f
commit
7f0fcb372b
26 changed files with 1505 additions and 45 deletions
|
|
@ -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>,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue