A chat message’s role identifies its source, while its content holds the message itself. Together, these fields describe messages in the chat history sent to chat completion. section 3.4
The role values identify who or what supplied a message:
- user marks a message written by the user. section 3.4
- assistant marks a message generated by the language model. section 3.4
- system marks a message for general guidance, typically placed at the beginning of the chat history. section 3.4
[{
'role':'user', #1
'content':'Tell me a story!' #2
}]
This example shows a user message represented as a dictionary with separate role and content values. section 3.4



