pub fn validate_code_execution_image_inputs( model: &str, contents: &[Content], tools: Option<&[Tool]>, ) -> Result<()>
当模型不支持带图像的代码执行时返回错误。