Upbeat earnings by big tech companies have added to a recent rally driven by Xi Jinping’s meeting with top corporate executives and the AI hype around DeepSeek.