-
Deploy a selected language model:
- Open your Azure OpenAI resource in the portal.
- Select Model deployments.
- Create a new deployment for the desired model (for example, GPT-4). Note the deployment name for future use.
-
Obtain API key and endpoint:
- Open your Azure OpenAI resource in the portal.
- Go to the Keys and Endpoint section.
- Copy the API Key and Endpoint for use in the code.