pub fn validate_function_response_media( model: &str, contents: &[Content], ) -> Result<()>
当模型不支持功能响应多媒体时返回错误。