You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/assistants-reference-messages.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Create a message.
36
36
37
37
|Name | Type | Required | Description |
38
38
|--- |--- |--- |--- |
39
-
|`role`| string | Required | The role of the entity that is creating the message. Can be `user` or `assistant`. `assistant` indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages. `assistant` indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation. |
39
+
|`role`| string | Required | The role of the entity that is creating the message. Can be `user` or `assistant`. `user` indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages. `assistant` indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation. |
40
40
|`content`| string | Required | The content of the message. |
41
41
|`file_ids`| array | Optional | A list of File IDs that the message should use. There can be a maximum of 10 files attached to a message. Useful for tools like retrieval and code_interpreter that can access and use files. |
42
42
|`metadata`| map | Optional | Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long. |
@@ -371,7 +371,7 @@ Represents a message within a thread.
371
371
|`object`| string |The object type, which is always thread.message.|
372
372
|`created_at`| integer |The Unix timestamp (in seconds) for when the message was created.|
373
373
|`thread_id`| string |The thread ID that this message belongs to.|
374
-
|`role`| string |The entity that produced the message. One of user or assistant.|
374
+
|`role`| string |The entity that produced the message. One of `user` or `assistant`.|
375
375
|`content`| array |The content of the message in array of text and/or images.|
376
376
|`assistant_id`| string or null |If applicable, the ID of the assistant that authored this message.|
377
377
|`run_id`| string or null |If applicable, the ID of the run associated with the authoring of this message.|
0 commit comments