Explore Library
Code QuizIntermediate

Temperature for Deterministic Output

Find the sampling-parameter mistake that keeps outputs random.

Codejavascript
const response = await client.chat.completions.create({
  model: "gpt-4o",
  messages,
  // We need the SAME answer every time for our test suite
  temperature: 1.0,
});

What is the bug given the stated goal?