QuestionQ161

Verified

In Microsoft Foundry, you use the Chat playground with the GPT-35 Turbo model. A prompt contains the following code.

Question Image

You need the model to generate an explanation of the code while minimizing costs. What should you do?

Explanation

A concise natural-language instruction such as // what does function F do? explicitly asks GPT-35 Turbo to explain the code while retaining the lower-cost model. GPT-35 Turbo can generate natural-language and code-related responses, and adding the instruction adds only a small number of prompt tokens. Increasing temperature changes output randomness, not the requested task; changing to GPT-4-32k is unnecessary for this simple explanation and would not minimize cost.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!