AI-102 Question 445
Single answerYou are designing a conversational AI system using Azure OpenAI Service to generate natural language responses. You need to submit a prompt to the Azure OpenAI model via the REST API to simulate a conversation with the model. Which key parameter must you include in your request payload to ensure the model understands the context of the conversation?
- A
temperature
- B
max_tokens
- C
prompt
- D
frequency_penalty
Show answer and explanation
Correct answer: C
Explanation
The 'prompt' parameter is critical when submitting a request to the Azure OpenAI Service because it provides the input text or context that the AI model uses to generate its response. Without a properly defined prompt, the model would not know what context or direction to follow in the conversation, making it an essential element of any API request for generating natural language.
- A. Incorrect.
The 'temperature' parameter controls the randomness or creativity of the response, but it does not define the actual input for generating text.
- B. Incorrect.
The 'max_tokens' parameter determines the maximum length of the response but does not define the input prompt itself.
- C. Correct.
The 'prompt' parameter is the actual input text or conversation context provided to the model. It is essential for the model to understand the conversation context and generate a relevant response.
- D. Incorrect.
The 'frequency_penalty' parameter adjusts the likelihood of the model repeating phrases but does not define the input for generating text.