Stocks were on track to end the week on an upbeat note after Big Tech earnings revived optimism in the artificial intelligence trade.