The partnership change gives both companies more freedom as they each work to expand their individual AI products—and comes ahead of OpenAI’s initial public offering.