API basics · Question 1 of 12

Which roles do messages have in a typical chat call to an LLM API?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • B "user" for inputs and "assistant" for the model's replies

Explanation

A conversation is a list of messages with roles: what the person or app writes goes under "user", the model's replies under "assistant". The system prompt sets the frame on top of that.

Certifications & exams

Which exam comes next?

You can already practise for 60 exams, and 7 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications