The week was a rollercoaster ride for the tech industry, with significant developments in the AI sector and the stock market.