Question
You have a Microsoft Foundry project named project1 that contains an Azure OpenAI resource named Resource1.
To Resource1, you deploy a gpt-4.1-mini model by using a model deployment named my-mini-gpt.
You need to connect to my-mini-gpt from an application.
How should you complete the Python code? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all.
NOTE: Each correct selection is worth one point.
Explanation
The base_url follows the pattern https://<resource-name>.openai.azure.com/openai/v1/, so the Azure OpenAI resource name resource1 belongs in the host portion of the endpoint. The model parameter must reference the deployment name rather than the base model name, so my-mini-gpt (the deployment) is used, not gpt-4.1-mini. Azure OpenAI routes requests by deployment name, which is why the deployment identifier is required here.