Microsoft has extended its partnership with OpenAI, announcing an additional multiyear, multibillion-dollar investment in the San Francisco artificial intelligence lab behind the experimental online chatbot ChatGPT.