Explore Library
Code QuizIntermediate

Invalid Message Role

Spot the invalid role name in this chat request.

Codejavascript
const messages = [
  { role: "system", content: "You are a helpful assistant." },
  { role: "human", content: "What's the capital of France?" }
];

await client.chat.completions.create({ model: "gpt-4o-mini", messages });

What is the bug in this messages array?