Skip to content

Commit 14deadd

Browse files
Update docstring about tool messages in prepare_multimodal_messages (#5476)
1 parent 0cb9667 commit 14deadd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

trl/data_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ def prepare_multimodal_messages(messages: list[dict[str, Any]], images: list | N
5353
the function transforms them into the structured format by wrapping text in `{"type": "text", "text": ...}`
5454
and inserting `{"type": "image"}` placeholders for the images *before* the first user message.
5555
If the number of placeholders does not match the number of provided images, an error is raised.
56-
- When the input `messages` contains either `"tool_calls"` in the `"assistant"` turns, or `"tool"` roles with
57-
`"content"` and `"name"` those are left as-is, since those don't require any specific handling for multimodal data.
5856
5957
Example:
6058
```python

0 commit comments

Comments
 (0)