AWS will power OpenAI’s next-generation models in a $38 billion deal as the AI firm moves beyond Microsoft.