Palantir upped its forecast for the year after posting an AI-fueled beat in the latest quarter.