Microsoft Azure AI Engineer Associate AI-102 Practice Question
You deployed a gpt-35-turbo model in Azure OpenAI through Azure AI Foundry. From a backend service you issue a POST request to the endpoint https://myresource.openai.azure.com/openai/deployments/gpt-35-turbo/chat/completions?api-version=2023-07-01-preview.%5CnWhich request body correctly submits a prompt that asks the model to return a Python function and makes the response deterministic across repeated calls?
{ "inputs": "Write a Python function that multiplies two numbers. Return only the code.", "top_p": 1 }
{ "messages": [ {"role": "system", "content": "You are a helpful assistant that writes Python code."}, {"role": "user", "content": "Write a Python function that multiplies two numbers. Return only the code enclosed in triple backticks."} ], "temperature": 0 }
{ "prompt": "Write a Python function that multiplies two numbers. Return only the code.", "temperature": 0 }
{ "text": "Write a Python function that multiplies two numbers.", "sampling_temperature": 0 }