Working with the GPT-3.5-Turbo and GPT-4 models. The following code snippet shows the most basic way to use the GPT-3.5-Turbo and GPT-4 models with the Chat Completion API. If this is your first time using these models programmatically, we recommend starting with our GPT-3.5-Turbo & GPT-4 Quickstart. OpenAI Python 0.28.1.
https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/chatgpt