AI, inequality and basic income

If AI is taking all the jobs, who pays us to live? The government or the technologyu companies who have embarked on this path of creative destruction?