AzureChatOpenAI supports chat completion models, including newer models like gpt-4o-2024-08-06
. AzureOpenAI supports text completion models, but NOT chat completion models (like the new gpt-4 models). If you want to use gpt-4 models, stick with AzureChatOpenAI.
More info here, and in the top banner: