Iran promises flexibility at nuclear talks amid threat of US strikes