Homework Help: Questions and Answers: What resource values are required to make requests to your Azure OpenAI resource?
Answer:
To make requests to an Azure OpenAI resource, you need the following resource values:
Resource Endpoint URL
- The URL endpoint is specific to your Azure OpenAI resource and is used to interact with the API.
- The endpoint format generally looks like:
https://<your-resource-name>.openai.azure.com
.
API Key
- You need an API key for authentication. This is a secret key generated by Azure for your resource.
- You can find the API key in the Azure portal by navigating to your Azure OpenAI resource and checking the “Keys and Endpoint” section.
Deployment Name
- Azure OpenAI uses deployments of models, and you need to specify the deployment name when making requests.
- This is configured during the model deployment phase in your Azure portal.
Azure Subscription ID (optional but sometimes required)
- For certain requests or configurations, you may need the subscription ID under which the resource is hosted.
Example: Step-by-Step Process
- Get Endpoint and Keys:
- Go to your Azure portal.
- Navigate to your Azure OpenAI resource.
- Go to the “Keys and Endpoint” section to retrieve the endpoint URL and API key.
- Deploy a Model:
- Go to the “Deployments” section.
- Deploy the desired model and note down the deployment name.
- Use the Values in Your Request:
- Use the endpoint URL as the base URL.
- Include the API key in the request headers as
Authorization: Bearer <API Key>
. - Specify the deployment name in your request body or URL, depending on the type of request you’re making.
These values allow you to authenticate and make requests to your Azure OpenAI resource securely.
Learn More: Homework Help
Q. Which of the following safety and privacy features is not included in a P2P app or service?
Q. A type of technology that can be attached to a tag and used to identify postal packages is a(n)?