Capital is still flowing into artificial intelligence, but lenders and investors are paying closer attention to financing needs. That scrutiny may favour companies able to show a credible path to returns.