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.