A list containing all the conversations between the user and the assistant.
Each item in the list should be a dictionary with two keys: 'role' and 'message'.
role: Specifies the role of the speaker and can have the values 'user', 'system', 'assistant' or 'tool'.
The system role instructs the way the model should answer, e.g. 'You are a helpful assistant'. The user
role specifies the user query and assistant is the model's response. The tool role is for external tools that
can be used in the conversation.
message: A list of dictionaries. Each dictionary in the 'message' list must contain the keys 'type' and 'content'.
- type: Specifies the type of content and can be 'image_url' or 'text'.
- content: A dictionary with the actual content based on the 'type':
- If 'type' is 'image_url', 'content' must contain 'image_url' and must not contain 'text'.
- If 'type' is 'text', 'content' must contain 'text' and must not contain 'image_url'.
[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Describe this image"
},
{
"type": "image_url",
"image_url": {
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
}
}
]
}
]