mirror of
https://github.com/openai/codex.git
synced 2026-11-02 19:43:24 +00:00
cleanup
This commit is contained in:
@@ -323,15 +323,6 @@ pub fn validate_builtin_tools_request(requested_builtin_tools: &[String]) -> Res
|
||||
invalid_names.join(", ")
|
||||
));
|
||||
}
|
||||
if requested_builtin_tools
|
||||
.iter()
|
||||
.any(|name| name == "write_stdin")
|
||||
&& !requested_builtin_tools
|
||||
.iter()
|
||||
.any(|name| name == "exec_command")
|
||||
{
|
||||
return Err("builtinTools cannot enable write_stdin without exec_command".to_string());
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -4109,14 +4100,6 @@ mod tests {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn validate_builtin_tools_request_requires_exec_for_write_stdin() {
|
||||
assert_eq!(
|
||||
validate_builtin_tools_request(&["write_stdin".to_string()]),
|
||||
Err("builtinTools cannot enable write_stdin without exec_command".to_string())
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mcp_tool_property_missing_type_defaults_to_string() {
|
||||
let config = test_config();
|
||||
|
||||
Reference in New Issue
Block a user