Question 291 · 328 in bank
HOTSPOT - You have an Azure subscription that contains an Azure OpenAI resource named AI1. You plan to develop a console app that will answer user questions. You need to call AI1 and output the results to the console. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
This is an interactive task on the real exam — a drag-and-drop, hotspot or ordering question. There is nothing to select here, so the answer is shown below for reference.
Show the answer figure
Answer: See figure below
Explanation
Given answer is correct 1) chatcompletion.create - this is the API for creating chat completion 2) response.choices[0].text - for picking the text with highest rated response choice
Source: Adapted from community discussion — rookiee1111




